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/rewrite-macros.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 clang/test/Frontend/rewrite-macros.c (limited to 'clang/test/Frontend/rewrite-macros.c') diff --git a/clang/test/Frontend/rewrite-macros.c b/clang/test/Frontend/rewrite-macros.c new file mode 100644 index 0000000..bc74796 --- /dev/null +++ b/clang/test/Frontend/rewrite-macros.c @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -verify -rewrite-macros -o %t %s + +#define A(a,b) a ## b + +// RUN: grep '12 */\*A\*/ /\*(1,2)\*/' %t +A(1,2) + +// RUN: grep '/\*_Pragma("mark")\*/' %t +_Pragma("mark") + +// RUN: grep "//#warning eek" %t +/* expected-warning {{eek}} */ #warning eek + +// RUN: grep "//#pragma mark mark" %t +#pragma mark mark + + -- cgit v1.2.3