Daniel Dunbar | 877db38 | 2009-06-02 22:07:45 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm -o %t %s && |
2 | // RUN: grep '@f0' %t | count 0 && | ||||
3 | // RUN: clang-cc -disable-llvm-optzns -emit-llvm -o %t %s && | ||||
4 | // RUN: grep '@f0' %t | count 2 | ||||
5 | |||||
6 | //static int f0() { | ||||
7 | static int __attribute__((always_inline)) f0() { | ||||
8 | return 1; | ||||
9 | } | ||||
10 | |||||
11 | int f1() { | ||||
12 | return f0(); | ||||
13 | } |