From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Frontend/cpp-output.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 clang/test/Frontend/cpp-output.c (limited to 'clang/test/Frontend/cpp-output.c') diff --git a/clang/test/Frontend/cpp-output.c b/clang/test/Frontend/cpp-output.c new file mode 100644 index 0000000..e44095b --- /dev/null +++ b/clang/test/Frontend/cpp-output.c @@ -0,0 +1,14 @@ +// 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 + +int x; // comment + +#define A(foo, bar) foo bar +#define B x // comment + +A(B, B) + -- cgit v1.2.3