freebsd-nq/test/CodeGen/always_inline.c
2009-06-03 21:11:25 +00:00

14 lines
290 B
C

// RUN: clang -emit-llvm -S -o %t %s &&
// RUN: grep '@f0' %t | count 0 &&
// RUN: clang -mllvm -disable-llvm-optzns -emit-llvm -S -o %t %s &&
// RUN: grep '@f0' %t | count 2
//static int f0() {
static int __attribute__((always_inline)) f0() {
return 1;
}
int f1() {
return f0();
}