clang-tools-extra/test/pp-trace/pp-trace-modules.cpp: Use [[@LINE]].
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 9 Mar 2014 04:10:05 +0000 (04:10 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 9 Mar 2014 04:10:05 +0000 (04:10 +0000)
llvm-svn: 203368

clang-tools-extra/test/pp-trace/pp-trace-modules.cpp

index 58a2b4b..c121b6a 100644 (file)
@@ -1,16 +1,19 @@
 // RUN: pp-trace -ignore FileChanged,MacroDefined %s -x objective-c++ -undef -target x86_64 -std=c++11 -fmodules -fcxx-modules -fmodules-cache-path=%t -I%S -I%S/Input | FileCheck --strict-whitespace %s
 
+// CHECK: ---
+
 @import Level1A;
-@import Level1B.Level2B;
 
-// CHECK: ---
 // CHECK-NEXT: - Callback: moduleImport
-// CHECK-NEXT:   ImportLoc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:3:2"
-// CHECK-NEXT:   Path: [{Name: Level1A, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:3:9"}]
+// CHECK-NEXT:   ImportLoc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-3]]:2"
+// CHECK-NEXT:   Path: [{Name: Level1A, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-4]]:9"}]
 // CHECK-NEXT:   Imported: Level1A
+
+@import Level1B.Level2B;
+
 // CHECK-NEXT: - Callback: moduleImport
-// CHECK-NEXT:   ImportLoc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:4:2"
-// CHECK-NEXT:   Path: [{Name: Level1B, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:4:9"}, {Name: Level2B, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:4:17"}]
+// CHECK-NEXT:   ImportLoc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-3]]:2"
+// CHECK-NEXT:   Path: [{Name: Level1B, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-4]]:9"}, {Name: Level2B, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-4]]:17"}]
 // CHECK-NEXT:   Imported: Level2B
 // CHECK-NEXT: - Callback: EndOfMainFile
 // CHECK-NEXT: ...