summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2007-06-05-NoInlineAttribute.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2007-06-05-NoInlineAttribute.c')
-rw-r--r--clang/test/CodeGen/2007-06-05-NoInlineAttribute.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2007-06-05-NoInlineAttribute.c b/clang/test/CodeGen/2007-06-05-NoInlineAttribute.c
new file mode 100644
index 0000000..26aad88
--- /dev/null
+++ b/clang/test/CodeGen/2007-06-05-NoInlineAttribute.c
@@ -0,0 +1,13 @@
+// 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);
+}
+