From b8e7410b22fa573fb0078712439f343bc69208dd Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 14 Jun 2009 09:24:02 +0000 Subject: Import Clang r73340. --- test/Frontend/cpp-output.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/Frontend/cpp-output.c (limited to 'test/Frontend/cpp-output.c') diff --git a/test/Frontend/cpp-output.c b/test/Frontend/cpp-output.c new file mode 100644 index 0000000..ee37f4c --- /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) + -- cgit v1.1