summaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_undef.c
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2009-11-04 15:04:32 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2009-11-04 15:04:32 +0000
commit51fb8b013e7734b795139f49d3b1f77c539be20a (patch)
tree59e0e47a9831dcf0e21e547927c8ebb7e113bfd1 /test/Preprocessor/macro_undef.c
parent73490b890977362d28dd6326843a1ecae413921d (diff)
Diffstat (limited to 'test/Preprocessor/macro_undef.c')
-rw-r--r--test/Preprocessor/macro_undef.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_undef.c b/test/Preprocessor/macro_undef.c
new file mode 100644
index 0000000000000..4507cddcb7964
--- /dev/null
+++ b/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