hanchenye-llvm-project/clang/test/CodeGen/2008-07-17-no-emit-on-error.c

15 lines
229 B
C

// RUN: rm -f %t1.bc
// RUN: %clang_cc1 -DPASS %s -emit-llvm-bc -o %t1.bc
// RUN: test -f %t1.bc
// RUN: not %clang_cc1 %s -emit-llvm-bc -o %t1.bc
// RUN: not test -f %t1.bc
void f() {
}
#ifndef PASS
void g() {
*10;
}
#endif