diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-08 21:48:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-08 21:48:20 +0000 |
commit | 3a183d3d46426d8719031553131b8928f50aa606 (patch) | |
tree | e7bedc0ea5f43638209e0e4bec56ede8669d5e92 /test/Frontend/cpp-output.c | |
parent | 591b907b3b29efa4047fc0aba042fdc81b45d5dc (diff) |
Forward -C and -CC to clang.
- <rdar://problem/6945384> Driver should pass down -C and -CC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend/cpp-output.c')
-rw-r--r-- | test/Frontend/cpp-output.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Frontend/cpp-output.c b/test/Frontend/cpp-output.c new file mode 100644 index 0000000000..ee37f4cd68 --- /dev/null +++ b/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) + |