summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/preprocess-multiple.c
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-02-24 08:17:02 +0000
committerAlp Toker <alp@nuanti.com>2014-02-24 08:17:02 +0000
commit8587f0ca99a0365c05b52cb89e32820e7ec3874a (patch)
tree33f6ee5714c7abe9359890f809d189ad1ab108fe /clang/test/Driver/preprocess-multiple.c
parent7d2fea2fd6903f91cdd1dd88e998b3955493b3ea (diff)
downloadbcm5719-llvm-8587f0ca99a0365c05b52cb89e32820e7ec3874a.tar.gz
bcm5719-llvm-8587f0ca99a0365c05b52cb89e32820e7ec3874a.zip
Add driver test for multiple preprocessor inputs
Fix an unintentional stdin read in the darwin-asan-nofortify.c test and replace it with an explicit test for multiple -E inputs passed to the driver. Noticed while working on the in-process driver patch. llvm-svn: 202007
Diffstat (limited to 'clang/test/Driver/preprocess-multiple.c')
-rw-r--r--clang/test/Driver/preprocess-multiple.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/preprocess-multiple.c b/clang/test/Driver/preprocess-multiple.c
new file mode 100644
index 00000000000..9f87d3d74fd
--- /dev/null
+++ b/clang/test/Driver/preprocess-multiple.c
@@ -0,0 +1,6 @@
+// RUN: %clang -E %s %s | FileCheck %s
+// Test that the driver can preprocess multiple files.
+
+X
+// CHECK: X
+// CHECK: X
OpenPOWER on IntegriCloud