aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/always_inline.c
blob: d159bd2233e42b99d9481a75c88c8c5c7a6036ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: clang-cc -emit-llvm -o %t %s &&
// RUN: grep '@f0' %t | count 0 &&
// RUN: clang-cc -disable-llvm-optzns -emit-llvm -o %t %s &&
// RUN: grep '@f0' %t | count 2

//static int f0() { 
static int __attribute__((always_inline)) f0() { 
  return 1;
}

int f1() {
  return f0();
}