aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.c
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
commitf7214bca742255f012ba205e13a6548defafad0c (patch)
tree5f45f7f44f7c62e5748451a4ad2a5d0b71f43706 /test/CodeGen/PowerPC/2008-01-25-EmptyFunction.c
parent381802f8e06668d0ec5fc760804c83e511dafc7c (diff)
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/2008-01-25-EmptyFunction.c')
-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 0000000000..896738ee06
--- /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;
+}