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