2015-06-27 01:49:10 +08: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-09-20 10:38:38 +08:00
|
|
|
RUN: %clang_cc1 -E %s -x c++ -verify -Wundef
|
2007-04-10 14:16:30 +08:00
|
|
|
*/
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2007-04-10 14:16:30 +08:00
|
|
|
|
|
|
|
#if true
|
2015-06-27 01:49:10 +08:00
|
|
|
// CPP: test block_1
|
|
|
|
// C-NOT: test block_1
|
|
|
|
test block_1
|
2007-04-10 14:16:30 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if false
|
2015-06-27 01:49:10 +08:00
|
|
|
// CPP-NOT: test block_2
|
|
|
|
// C-NOT: test block_2
|
|
|
|
test block_2
|
2007-04-10 14:16:30 +08:00
|
|
|
#endif
|
|
|
|
|