From ec2b103c267a06a66e926f62cd96767b280f5cf5 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:58:47 +0000 Subject: Import Clang, at r72732. --- test/Preprocessor/macro_expand.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/Preprocessor/macro_expand.c (limited to 'test/Preprocessor/macro_expand.c') diff --git a/test/Preprocessor/macro_expand.c b/test/Preprocessor/macro_expand.c new file mode 100644 index 0000000000000..74b3922d1e13f --- /dev/null +++ b/test/Preprocessor/macro_expand.c @@ -0,0 +1,19 @@ +// RUN: clang-cc -E %s | grep '^A: Y$' && +// RUN: clang-cc -E %s | grep '^B: f()$' && +// RUN: clang-cc -E %s | grep '^C: for()$' + +#define X() Y +#define Y() X + +A: X()()() + +// PR3927 +#define f(x) h(x +#define for(x) h(x +#define h(x) x() +B: f(f)) +C: for(for)) + +// rdar://6880648 +#define f(x,y...) y +f() -- cgit v1.2.3