aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2008-07-17-no-emit-on-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/2008-07-17-no-emit-on-error.c')
-rw-r--r--test/CodeGen/2008-07-17-no-emit-on-error.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/2008-07-17-no-emit-on-error.c b/test/CodeGen/2008-07-17-no-emit-on-error.c
new file mode 100644
index 000000000000..89aeb18d9d13
--- /dev/null
+++ b/test/CodeGen/2008-07-17-no-emit-on-error.c
@@ -0,0 +1,10 @@
+// RUN: rm -f %t1.bc
+// RUN: not clang-cc %s -emit-llvm-bc -o %t1.bc
+// RUN: not test -f %t1.bc
+
+void f() {
+}
+
+void g() {
+ *10;
+}