teak-llvm/clang/test/CodeGen/always-inline.c
Sebastian Pop 3ff4416458 check that always_inline attribute works with -fno-inline
Clean up the existing test to use FileCheck.

llvm-svn: 168607
2012-11-26 20:44:46 +00:00

16 lines
252 B
C

// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -fno-inline -emit-llvm %s -o - | FileCheck %s
// CHECK-NOT: foo
void bar() {
}
inline void __attribute__((__always_inline__)) foo() {
bar();
}
void i_want_bar() {
foo();
}