diff options
Diffstat (limited to 'llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c')
| -rw-r--r-- | llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c b/llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c new file mode 100644 index 00000000000..cb1920aed09 --- /dev/null +++ b/llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c @@ -0,0 +1,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); +} + |

