Sebastian Pop | 9e4bafc | 2012-11-26 20:44:46 +0000 | [diff] [blame] | 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 | ||||
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 5 | |
6 | void bar() { | ||||
7 | } | ||||
8 | |||||
9 | inline void __attribute__((__always_inline__)) foo() { | ||||
10 | bar(); | ||||
11 | } | ||||
12 | |||||
13 | void i_want_bar() { | ||||
14 | foo(); | ||||
15 | } |