summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-05-06 14:56:40 +0000
committerDuncan Sands <baldrick@free.fr>2008-05-06 14:56:40 +0000
commitc8d9fe6bf92ac5a7ee48c328cd412bf052e6b07b (patch)
treea277f40217d7141ca1a29b14975d3820472a01a6 /test
parent1f85129eb7489de7bd3a23338d414689a5465b7c (diff)
downloadllvm-c8d9fe6bf92ac5a7ee48c328cd412bf052e6b07b.tar.gz
llvm-c8d9fe6bf92ac5a7ee48c328cd412bf052e6b07b.tar.bz2
llvm-c8d9fe6bf92ac5a7ee48c328cd412bf052e6b07b.tar.xz
Testcase for PR2292.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CFrontend/2008-05-06-CFECrash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CFrontend/2008-05-06-CFECrash.c b/test/CFrontend/2008-05-06-CFECrash.c
new file mode 100644
index 0000000000..94d556c1ec
--- /dev/null
+++ b/test/CFrontend/2008-05-06-CFECrash.c
@@ -0,0 +1,4 @@
+// RUN: %llvmgcc -S -O2 %s -o /dev/null
+// PR2292.
+__inline__ __attribute__ ((__pure__)) int g (void) {}
+void f (int k) { k = g (); }