summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/macro_undef.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/macro_undef.c')
-rw-r--r--clang/test/Preprocessor/macro_undef.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/macro_undef.c b/clang/test/Preprocessor/macro_undef.c
new file mode 100644
index 00000000000..4507cddcb79
--- /dev/null
+++ b/clang/test/Preprocessor/macro_undef.c
@@ -0,0 +1,4 @@
+// RUN: clang-cc -dM -undef -Dfoo=1 -E %s | FileCheck %s
+
+// CHECK-NOT: #define __clang__
+// CHECK: #define foo 1
OpenPOWER on IntegriCloud