Test case for noinline attribute.
authorTanya Lattner <tonic@nondot.org>
Wed, 6 Jun 2007 20:52:16 +0000 (20:52 +0000)
committerTanya Lattner <tonic@nondot.org>
Wed, 6 Jun 2007 20:52:16 +0000 (20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37479 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-06-05-NoInlineAttribute.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-06-05-NoInlineAttribute.c b/test/CFrontend/2007-06-05-NoInlineAttribute.c
new file mode 100644 (file)
index 0000000..c0c17c9
--- /dev/null
@@ -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);
+}
+