[cfe-commits] r38742 - /cfe/cfe/trunk/test/Preprocessor/macro_rescan2.c

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:24:15 PDT 2007


Author: sabre
Date: Wed Jul 11 11:24:15 2007
New Revision: 38742

URL: http://llvm.org/viewvc/llvm-project?rev=38742&view=rev
Log:
new testcase from c99 rationale

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

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

==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/macro_rescan2.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/macro_rescan2.c Wed Jul 11 11:24:15 2007
@@ -0,0 +1,15 @@
+// RUN: clang %s -E | grep 'a: 2\*f(9)' &&
+// RUN: clang %s -E | grep 'b: 2\*9\*g'
+
+#define f(a) a*g 
+#define g f 
+a: f(2)(9) 
+
+#undef f
+#undef g
+
+#define f(a) a*g 
+#define g(a) f(a) 
+
+b: f(2)(9)
+

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

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

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

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





More information about the cfe-commits mailing list