aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-01-26 06:53:06 +0000
committerBill Wendling <isanbard@gmail.com>2008-01-26 06:53:06 +0000
commita0da35341d587f3a29678e15f012791e6accd80f (patch)
tree5f45f7f44f7c62e5748451a4ad2a5d0b71f43706 /test/CodeGen/PowerPC
parent36ccaea327a7b307131fe09db2feb6781acd69a0 (diff)
downloadexternal_llvm-a0da35341d587f3a29678e15f012791e6accd80f.zip
external_llvm-a0da35341d587f3a29678e15f012791e6accd80f.tar.gz
external_llvm-a0da35341d587f3a29678e15f012791e6accd80f.tar.bz2
Move testcase to the code gen directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC')
-rw-r--r--test/CodeGen/PowerPC/2008-01-25-EmptyFunction.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.c b/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.c
new file mode 100644
index 0000000..896738e
--- /dev/null
+++ b/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.c
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | grep llvm.trap
+// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | grep unreachable
+
+void bork() {
+ int *address = 0;
+ *address = 0;
+}