Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 1 | // RUN: rm -f %t1.bc |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -DPASS %s -emit-llvm-bc -o %t1.bc |
NAKAMURA Takumi | 8e4245d | 2011-03-05 11:15:55 +0000 | [diff] [blame] | 3 | // RUN: opt %t1.bc -disable-output |
Argyrios Kyrtzidis | dc24572 | 2010-09-17 17:38:48 +0000 | [diff] [blame] | 4 | // RUN: rm -f %t1.bc |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 5 | // RUN: not %clang_cc1 %s -emit-llvm-bc -o %t1.bc |
NAKAMURA Takumi | 8e4245d | 2011-03-05 11:15:55 +0000 | [diff] [blame] | 6 | // RUN: not opt %t1.bc -disable-output |
Daniel Dunbar | c8aeb65 | 2008-07-18 16:38:05 +0000 | [diff] [blame] | 7 | |
8 | void f() { | ||||
9 | } | ||||
10 | |||||
Daniel Dunbar | 600d47e | 2009-11-20 17:23:39 +0000 | [diff] [blame] | 11 | #ifndef PASS |
Daniel Dunbar | c8aeb65 | 2008-07-18 16:38:05 +0000 | [diff] [blame] | 12 | void g() { |
13 | *10; | ||||
14 | } | ||||
Daniel Dunbar | 600d47e | 2009-11-20 17:23:39 +0000 | [diff] [blame] | 15 | #endif |