summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2008-07-17-no-emit-on-error.c
blob: 2cae57b3d89f61a6c420d52819ca5da2a8c6e771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: rm -f %t1.bc
// RUN: %clang_cc1 -DPASS %s -emit-llvm-bc -o %t1.bc
// RUN: opt %t1.bc -disable-output
// RUN: rm -f %t1.bc
// RUN: not %clang_cc1 %s -emit-llvm-bc -o %t1.bc
// RUN: not opt %t1.bc -disable-output

void f() {
}

#ifndef PASS
void g() {
  *10;
}
#endif