aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
commit4536612477ae234c0de0fffd445a7ca122c608a6 (patch)
tree2374b787f08d49c92f2379772822a5081d1699a6 /test
parent4e2288b9de2fc30d4b88b437c86594cd8ec332fa (diff)
downloadexternal_llvm-4536612477ae234c0de0fffd445a7ca122c608a6.zip
external_llvm-4536612477ae234c0de0fffd445a7ca122c608a6.tar.gz
external_llvm-4536612477ae234c0de0fffd445a7ca122c608a6.tar.bz2
Test case for noinline attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CFrontend/2007-06-05-NoInlineAttribute.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CFrontend/2007-06-05-NoInlineAttribute.c b/test/CFrontend/2007-06-05-NoInlineAttribute.c
new file mode 100644
index 0000000..c0c17c9
--- /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);
+}
+