r203445 - clang/test/Index/preamble-reparse-warn-*.c: Use @LINE in FileCheck.

NAKAMURA Takumi geek4civic at gmail.com
Sun Mar 9 23:02:03 PDT 2014


Author: chapuni
Date: Mon Mar 10 01:02:03 2014
New Revision: 203445

URL: http://llvm.org/viewvc/llvm-project?rev=203445&view=rev
Log:
clang/test/Index/preamble-reparse-warn-*.c: Use @LINE in FileCheck.

Modified:
    cfe/trunk/test/Index/preamble-reparse-warn-end-of-file.c
    cfe/trunk/test/Index/preamble-reparse-warn-macro.c

Modified: cfe/trunk/test/Index/preamble-reparse-warn-end-of-file.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/preamble-reparse-warn-end-of-file.c?rev=203445&r1=203444&r2=203445&view=diff
==============================================================================
--- cfe/trunk/test/Index/preamble-reparse-warn-end-of-file.c (original)
+++ cfe/trunk/test/Index/preamble-reparse-warn-end-of-file.c Mon Mar 10 01:02:03 2014
@@ -3,9 +3,9 @@
 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 2 local %s -I %t 2> %t.err.txt > %t.out.txt
 // RUN: cat %t.err.txt >> %t.out.txt
 // RUN: FileCheck -input-file=%t.out.txt %s
-// CHECK: preamble-reparse-warn-end-of-file.c:[[FnLine:.*]]:6: FunctionDecl=test:[[FnLine]]:6
-// CHECK: preamble-reparse-warn-end-of-file.c:[[FnLine]]:14: error: expected '}'
-// CHECK: preamble-reparse-warn-end-of-file.c:[[FnLine]]:14: error: expected '}'
+// CHECK: preamble-reparse-warn-end-of-file.c:[[@LINE+6]]:6: FunctionDecl=test:[[@LINE+6]]:6
+// CHECK: preamble-reparse-warn-end-of-file.c:[[@LINE+5]]:14: error: expected '}'
+// CHECK: preamble-reparse-warn-end-of-file.c:[[@LINE+4]]:14: error: expected '}'
 
 #include "header.h"
 

Modified: cfe/trunk/test/Index/preamble-reparse-warn-macro.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/preamble-reparse-warn-macro.c?rev=203445&r1=203444&r2=203445&view=diff
==============================================================================
--- cfe/trunk/test/Index/preamble-reparse-warn-macro.c (original)
+++ cfe/trunk/test/Index/preamble-reparse-warn-macro.c Mon Mar 10 01:02:03 2014
@@ -3,9 +3,9 @@
 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 2 local %s -I %t 2> %t.err.txt > %t.out.txt
 // RUN: cat %t.err.txt >> %t.out.txt
 // RUN: FileCheck -input-file=%t.out.txt %s
-// CHECK: preamble-reparse-warn-macro.c:14:9: warning: 'MAC' macro redefined
+// CHECK: preamble-reparse-warn-macro.c:[[@LINE+8]]:9: warning: 'MAC' macro redefined
 // CHECK-NEXT: Number FIX-ITs = 0
-// CHECK-NEXT: preamble-reparse-warn-macro.c:10:9: note: previous definition is here
+// CHECK-NEXT: preamble-reparse-warn-macro.c:[[@LINE+2]]:9: note: previous definition is here
 
 #define MAC 1
 #include "header.h"





More information about the cfe-commits mailing list