summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/cpp-output.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-08 21:48:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-08 21:48:20 +0000
commit367dbb9760d4c0c205a58f069cc4210285a3f994 (patch)
tree3866d5688dbb1bfdd2c478bba5fcfc1420cab96a /clang/test/Frontend/cpp-output.c
parentf9f689b3ab8eae820b0033b99bde50b2c884c83d (diff)
downloadbcm5719-llvm-367dbb9760d4c0c205a58f069cc4210285a3f994.tar.gz
bcm5719-llvm-367dbb9760d4c0c205a58f069cc4210285a3f994.zip
Forward -C and -CC to clang.
- <rdar://problem/6945384> Driver should pass down -C and -CC llvm-svn: 73087
Diffstat (limited to 'clang/test/Frontend/cpp-output.c')
-rw-r--r--clang/test/Frontend/cpp-output.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Frontend/cpp-output.c b/clang/test/Frontend/cpp-output.c
new file mode 100644
index 00000000000..ee37f4cd685
--- /dev/null
+++ b/clang/test/Frontend/cpp-output.c
@@ -0,0 +1,15 @@
+// RUN: clang -E -o %t -C %s &&
+// RUN: grep '^int x; // comment' %t &&
+// RUN: grep '^x x' %t &&
+// RUN: clang -E -o %t -CC %s &&
+// RUN: grep '^int x; // comment' %t &&
+// RUN: grep '^x /\* comment \*/ x /\* comment \*/' %t &&
+// RUN: true
+
+int x; // comment
+
+#define A(foo, bar) foo bar
+#define B x // comment
+
+A(B, B)
+
OpenPOWER on IntegriCloud