llvm-for-llvmta/tools/clang/test/CodeGen/2007-06-05-NoInlineAttribute.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

14 lines
210 B
C

// RUN: %clang_cc1 -O2 -emit-llvm %s -o - | grep call
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);
}