commit | 5f027ef58e3986bf67a177a32efc207b839903f4 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Fri Jul 18 16:38:05 2008 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Fri Jul 18 16:38:05 2008 +0000 |
tree | 5d948a0269f7aabc83b4c4f9f7f0b4943fc1a11a | |
parent | d277421d7a784e811c46886000920012c3ac6a56 [diff] |
Prevent clang from emitting output when input has errors + test case <rdar://problem/6080040> http://llvm.org/bugs/show_bug.cgi?id=2280 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53756 91177308-0d34-0410-b5e6-96231b3b80d8
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 0000000..5339695 --- /dev/null +++ b/test/CodeGen/2008-07-17-no-emit-on-error.c
@@ -0,0 +1,10 @@ +// RUN: rm -f %t1.bc +// RUN: ! clang %s -emit-llvm-bc -o %t1.bc +// RUN: ! test -f %t1.bc + +void f() { +} + +void g() { + *10; +}