r179308 - Follow Jordan's advice and use {{^}} and {{$}} for this test
Reid Kleckner
reid at kleckner.net
Thu Apr 11 11:39:10 PDT 2013
Author: rnk
Date: Thu Apr 11 13:39:10 2013
New Revision: 179308
URL: http://llvm.org/viewvc/llvm-project?rev=179308&view=rev
Log:
Follow Jordan's advice and use {{^}} and {{$}} for this test
This is a better way of ensuring that we match the output of the
rewriter and not the CHECK line.
Modified:
cfe/trunk/test/Frontend/rewrite-macros.c
Modified: cfe/trunk/test/Frontend/rewrite-macros.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-macros.c?rev=179308&r1=179307&r2=179308&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/rewrite-macros.c (original)
+++ cfe/trunk/test/Frontend/rewrite-macros.c Thu Apr 11 13:39:10 2013
@@ -6,16 +6,16 @@
#define A(a,b) a ## b
-// CHECK: 12{{ *}}/*A*/ /*(1,2)*/
+// CHECK: {{^}} 12 /*A*/ /*(1,2)*/{{$}}
A(1,2)
-// CHECK: /*_Pragma("{{mark}}")*/
+// CHECK: {{^}} /*_Pragma("mark")*/{{$}}
_Pragma("mark")
-// CHECK: /*#warning {{eek}}*/
+// CHECK: /*#warning eek*/{{$}}
/* expected-warning {{eek}} */ #warning eek
-// CHECK: //#pragma mark {{mark}}
+// CHECK: {{^}}//#pragma mark mark{{$}}
#pragma mark mark
More information about the cfe-commits
mailing list