2012-11-27 04:44:46 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -fno-inline -emit-llvm %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
// CHECK-NOT: foo
|
2011-07-27 06:17:02 +08:00
|
|
|
|
|
|
|
void bar() {
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void __attribute__((__always_inline__)) foo() {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
void i_want_bar() {
|
|
|
|
foo();
|
|
|
|
}
|