aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/include-macros.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-08 20:53:24 +0000
committerChris Lattner <sabre@nondot.org>2009-04-08 20:53:24 +0000
commitfd10511b3e686c5b045f8324b0632f3624d9ef05 (patch)
tree23e247d47121d809713ac8a829f2d40135e5cd8e /test/Preprocessor/include-macros.c
parent0139bb96494b4c4ba0824617d5d2495dc7e44c76 (diff)
finish the implementation of -imacros. The driver still needs to be hooked up.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/include-macros.c')
-rw-r--r--test/Preprocessor/include-macros.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/include-macros.c b/test/Preprocessor/include-macros.c
new file mode 100644
index 0000000000..c085e0c07e
--- /dev/null
+++ b/test/Preprocessor/include-macros.c
@@ -0,0 +1,4 @@
+// RUN: clang-cc -E -Dtest=FOO -imacros pr2086.h %s | grep 'HERE: test'
+
+// This should not be expanded into FOO because pr2086.h undefs 'test'.
+HERE: test