xref: /aosp_15_r20/external/clang/test/CodeGen/2008-07-17-no-emit-on-error.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: rm -f %t1.bc
2 // RUN: %clang_cc1 -DPASS %s -emit-llvm-bc -o %t1.bc
3 // RUN: opt %t1.bc -disable-output
4 // RUN: rm -f %t1.bc
5 // RUN: not %clang_cc1 %s -emit-llvm-bc -o %t1.bc
6 // RUN: not opt %t1.bc -disable-output
7 
f()8 void f() {
9 }
10 
11 #ifndef PASS
g()12 void g() {
13   *10;
14 }
15 #endif
16