llvm-project/llvm/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-07 05:00:46 +08:00
static int bar(int x, int y) __attribute__((noinline));
2007-06-07 05:00:46 +08:00
static int bar(int x, int y)
{
return x + y;
}
int foo(int a, int b) {
return bar(b, a);
}