xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/always-inline.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // 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
5 
bar()6 void bar() {
7 }
8 
foo()9 inline void __attribute__((__always_inline__)) foo() {
10   bar();
11 }
12 
i_want_bar()13 void i_want_bar() {
14   foo();
15 }
16