blob: 2cae57b3d89f61a6c420d52819ca5da2a8c6e771 [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00001// RUN: rm -f %t1.bc
Daniel Dunbara5728872009-12-15 20:14:24 +00002// RUN: %clang_cc1 -DPASS %s -emit-llvm-bc -o %t1.bc
NAKAMURA Takumi8e4245d2011-03-05 11:15:55 +00003// RUN: opt %t1.bc -disable-output
Argyrios Kyrtzidisdc245722010-09-17 17:38:48 +00004// RUN: rm -f %t1.bc
Daniel Dunbara5728872009-12-15 20:14:24 +00005// RUN: not %clang_cc1 %s -emit-llvm-bc -o %t1.bc
NAKAMURA Takumi8e4245d2011-03-05 11:15:55 +00006// RUN: not opt %t1.bc -disable-output
Daniel Dunbarc8aeb652008-07-18 16:38:05 +00007
8void f() {
9}
10
Daniel Dunbar600d47e2009-11-20 17:23:39 +000011#ifndef PASS
Daniel Dunbarc8aeb652008-07-18 16:38:05 +000012void g() {
13 *10;
14}
Daniel Dunbar600d47e2009-11-20 17:23:39 +000015#endif