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

void f() {
}

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