summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/dump-macros-undef.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/dump-macros-undef.c')
-rw-r--r--clang/test/Preprocessor/dump-macros-undef.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/dump-macros-undef.c b/clang/test/Preprocessor/dump-macros-undef.c
new file mode 100644
index 0000000..358fd17
--- /dev/null
+++ b/clang/test/Preprocessor/dump-macros-undef.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -E -dD %s | FileCheck %s
+// PR7818
+
+// CHECK: # 1 "{{.+}}.c"
+#define X 3
+// CHECK: #define X 3
+#undef X
+// CHECK: #undef X