diff options
Diffstat (limited to 'clang/test/Misc/pubnames.c')
-rw-r--r-- | clang/test/Misc/pubnames.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/Misc/pubnames.c b/clang/test/Misc/pubnames.c new file mode 100644 index 00000000000..03048972c00 --- /dev/null +++ b/clang/test/Misc/pubnames.c @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -pubnames-dump %s | FileCheck %s +#define FOO +#define BAR +#undef FOO +#define WIBBLE + +int foo(); +int bar(float); +int wibble; + +// CHECK: BAR +// CHECK-NOT: FOO +// CHECK: WIBBLE +// CHECK-NOT: __clang_major__ +// CHECK: bar +// CHECK: foo +// CHECK: wibble + + |