2015-07-05 10:23:59 -04:00
|
|
|
/* RUN: %clang_cc1 -E %s -x c++ | FileCheck -check-prefix CPP %s
|
|
|
|
|
RUN: %clang_cc1 -E %s -x c | FileCheck -check-prefix C %s
|
2012-12-02 08:20:44 -05:00
|
|
|
RUN: %clang_cc1 -E %s -x c++ -verify -Wundef
|
2009-06-02 13:58:47 -04:00
|
|
|
*/
|
2012-12-02 08:20:44 -05:00
|
|
|
// expected-no-diagnostics
|
2009-06-02 13:58:47 -04:00
|
|
|
|
|
|
|
|
#if true
|
2015-07-05 10:23:59 -04:00
|
|
|
// CPP: test block_1
|
|
|
|
|
// C-NOT: test block_1
|
|
|
|
|
test block_1
|
2009-06-02 13:58:47 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if false
|
2015-07-05 10:23:59 -04:00
|
|
|
// CPP-NOT: test block_2
|
|
|
|
|
// C-NOT: test block_2
|
|
|
|
|
test block_2
|
2009-06-02 13:58:47 -04:00
|
|
|
#endif
|
|
|
|
|
|