From 53ede2a826c1079ae88bb05c2b695b84e793453a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 11 Jul 2006 04:00:23 +0000 Subject: [PATCH] new testcase llvm-svn: 38693 --- clang/test/Preprocessor/macro_fn_lparen_scan.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 clang/test/Preprocessor/macro_fn_lparen_scan.c diff --git a/clang/test/Preprocessor/macro_fn_lparen_scan.c b/clang/test/Preprocessor/macro_fn_lparen_scan.c new file mode 100644 index 000000000000..8403b359871a --- /dev/null +++ b/clang/test/Preprocessor/macro_fn_lparen_scan.c @@ -0,0 +1,16 @@ +// RUN: clang -E %s | grep 'noexp: foo y' && +// RUN: clang -E %s | grep 'expand: abc' + +#define A foo +#define foo() abc +#define X A y + +// This should not expand to abc, because the foo macro isn't followed by (. +noexp: X + +#undef X + +// This should expand to abc. +#define X A () +expand: X +