]> granicus.if.org Git - clang/commitdiff
Follow Jordan's advice and use {{^}} and {{$}} for this test
authorReid Kleckner <reid@kleckner.net>
Thu, 11 Apr 2013 18:39:10 +0000 (18:39 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 11 Apr 2013 18:39:10 +0000 (18:39 +0000)
This is a better way of ensuring that we match the output of the
rewriter and not the CHECK line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179308 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/rewrite-macros.c

index 18c50342f44c39b093b8e56e6ee664b98adfd505..eab66571b8d75920a20491b91f1814356711c00b 100644 (file)
@@ -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