blob: c91fd43f2761cd49adc9dd0e7df63d18f7ea53a1 [file] [log] [blame]
Daniel Dunbar80737ad2009-12-15 22:01:24 +00001// RUN: %clang -emit-llvm -S -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: not grep '@f0' %t
3// RUN: not grep 'call ' %t
Daniel Dunbar80737ad2009-12-15 22:01:24 +00004// RUN: %clang -mllvm -disable-llvm-optzns -emit-llvm -S -o %t %s
Daniel Dunbar877db382009-06-02 22:07:45 +00005// RUN: grep '@f0' %t | count 2
6
7//static int f0() {
8static int __attribute__((always_inline)) f0() {
9 return 1;
10}
11
12int f1() {
13 return f0();
14}
Chris Lattner5db7ae52009-06-13 00:26:38 +000015
16// PR4372
17inline int f2() __attribute__((always_inline));
18int f2() { return 7; }
19int f3(void) { return f2(); }
20