1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-29 23:12:55 +01:00
llvm-mirror/test/FrontendC/2007-06-05-NoInlineAttribute.c

14 lines
222 B
C
Raw Normal View History

// RUN: %llvmgcc -O2 -c -emit-llvm %s -o - | llvm-dis | grep call
2007-06-06 23:00:46 +02:00
static int bar(int x, int y) __attribute__((noinline));
2007-06-06 23:00:46 +02:00
static int bar(int x, int y)
{
return x + y;
}
int foo(int a, int b) {
return bar(b, a);
}