summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-18 07:16:30 +0000
committerChris Lattner <sabre@nondot.org>2006-06-18 07:16:30 +0000
commit4322e2201b0df39b9bdb4299e8c1f1607d730a1a (patch)
tree0b1b8f9df14232818c9758483d8aa064d08e22c2 /clang/test/Preprocessor
parent1500881bd9e06e434c63e4b797d3908668c55a8a (diff)
downloadbcm5719-llvm-4322e2201b0df39b9bdb4299e8c1f1607d730a1a.tar.gz
bcm5719-llvm-4322e2201b0df39b9bdb4299e8c1f1607d730a1a.zip
new testcase
llvm-svn: 38545
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/includeexpand.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/includeexpand.c b/clang/test/Preprocessor/includeexpand.c
new file mode 100644
index 00000000000..33637952b79
--- /dev/null
+++ b/clang/test/Preprocessor/includeexpand.c
@@ -0,0 +1,12 @@
+// RUN: clang %s -fno-caret-diagnostics 2>&1 | grep 'file successfully included' | wc -l | grep 3
+
+// XX expands to nothing.
+#define XX
+
+#define FILE "file_to_include.h"
+#include XX FILE
+
+#include FILE
+
+
+#include "file_to_include.h"
OpenPOWER on IntegriCloud