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