[cfe-commits] r38693 - /cfe/cfe/trunk/test/Preprocessor/macro_fn_lparen_scan.c

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:23:52 PDT 2007


Author: sabre
Date: Wed Jul 11 11:23:52 2007
New Revision: 38693

URL: http://llvm.org/viewvc/llvm-project?rev=38693&view=rev
Log:
new testcase

Added:
    cfe/cfe/trunk/test/Preprocessor/macro_fn_lparen_scan.c   (with props)

Added: cfe/cfe/trunk/test/Preprocessor/macro_fn_lparen_scan.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/macro_fn_lparen_scan.c?rev=38693&view=auto

==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/macro_fn_lparen_scan.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/macro_fn_lparen_scan.c Wed Jul 11 11:23:52 2007
@@ -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
+

Propchange: cfe/cfe/trunk/test/Preprocessor/macro_fn_lparen_scan.c

------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cfe/cfe/trunk/test/Preprocessor/macro_fn_lparen_scan.c

------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision





More information about the cfe-commits mailing list