blob: f6dc459e2c1f5aa3f4afa5a7e202dd7abebb03f7 [file] [log] [blame]
Chad Rosierb046a632015-06-26 17:49:10 +00001/* RUN: %clang_cc1 -E %s -x c++ | FileCheck -check-prefix CPP %s
2 RUN: %clang_cc1 -E %s -x c | FileCheck -check-prefix C %s
Eli Friedman847f3ca2012-09-20 02:38:38 +00003 RUN: %clang_cc1 -E %s -x c++ -verify -Wundef
Chris Lattnera7fa1b22007-04-10 06:16:30 +00004*/
Andy Gibbsc6e68da2012-10-19 12:44:48 +00005// expected-no-diagnostics
Chris Lattnera7fa1b22007-04-10 06:16:30 +00006
7#if true
Chad Rosierb046a632015-06-26 17:49:10 +00008// CPP: test block_1
9// C-NOT: test block_1
10test block_1
Chris Lattnera7fa1b22007-04-10 06:16:30 +000011#endif
12
13#if false
Chad Rosierb046a632015-06-26 17:49:10 +000014// CPP-NOT: test block_2
15// C-NOT: test block_2
16test block_2
Chris Lattnera7fa1b22007-04-10 06:16:30 +000017#endif
18