summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/always-inline.c
blob: dc74be5e8c218beec28d3e2fbd6f15f718946140 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-llvm %s -o - | grep call | not grep foo

void bar() {
}

inline void __attribute__((__always_inline__)) foo() {
  bar();
}

void i_want_bar() {
  foo();
}