diff --git a/test/CFrontend/2007-06-05-NoInlineAttribute.c b/test/CFrontend/2007-06-05-NoInlineAttribute.c new file mode 100644 index 00000000000..c0c17c921be --- /dev/null +++ b/test/CFrontend/2007-06-05-NoInlineAttribute.c @@ -0,0 +1,13 @@ +// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.noinline + +int bar(int x, int y); __attribute__((noinline)) + +int bar(int x, int y) +{ + return x + y; +} + +int foo(int a, int b) { + return bar(b, a); +} +