aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2008-01-25-EmptyFunction.c
diff options
context:
space:
mode:
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;
+}