summaryrefslogtreecommitdiffstats
path: root/llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2007-06-06 20:52:16 +0000
committerTanya Lattner <tonic@nondot.org>2007-06-06 20:52:16 +0000
commit65cdd36e54fb94c42d9cf9cad827cbd95bf9bb0f (patch)
tree24320cf10087b9181e41b510ae9d0dca4d263e73 /llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c
parent34404e324747d78c4047eb07f98df5d6f5d407b3 (diff)
downloadbcm5719-llvm-65cdd36e54fb94c42d9cf9cad827cbd95bf9bb0f.tar.gz
bcm5719-llvm-65cdd36e54fb94c42d9cf9cad827cbd95bf9bb0f.zip
Test case for noinline attribute.
llvm-svn: 37479
Diffstat (limited to 'llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c')
-rw-r--r--llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c b/llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c
new file mode 100644
index 00000000000..c0c17c921be
--- /dev/null
+++ b/llvm/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);
+}
+
OpenPOWER on IntegriCloud