blob: c9fd1ae2d80d83698a2a6b712082738d6ba85885 [file] [log] [blame]
Sebastian Pop9e4bafc2012-11-26 20:44:46 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2// RUN: %clang_cc1 -fno-inline -emit-llvm %s -o - | FileCheck %s
3
4// CHECK-NOT: foo
Eric Christopher3883e662011-07-26 22:17:02 +00005
6void bar() {
7}
8
9inline void __attribute__((__always_inline__)) foo() {
10 bar();
11}
12
13void i_want_bar() {
14 foo();
15}