aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-06-05-NoInlineAttribute.c
blob: cb1920aed091576f6c2bf6e368ea106ad4898037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %llvmgcc -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);
}