aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/2007-06-05-NoInlineAttribute.c
blob: 1fd981b6e4df4de6c14f3260cc4dad3524994965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.noinline 

static int bar(int x, int y) __attribute__((noinline));

static int bar(int x, int y)  
{
 return x + y;
}

int foo(int a, int b) {
 return  bar(b, a);
}