mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
4cd6523c9e
Pattern has source location by itself. After adding a trivial method to retrieve it, it's unnecessary to pair a source location for CHECK-NOT patterns. One thing revised after this is the diagnostic info is more accurate by pointing to the start of the CHECK-NOT pattern instead of the end of the CHECK-NOT pattern. E.g. diagnostic message previously looks like <stdin>:1:1: error: CHECK-NOT: string occurred! test ^ test.txt:1:16: note: CHECK-NOT: pattern specified here CHECK-NOT: test ^ is changed to <stdin>:1:1: error: CHECK-NOT: string occurred! test ^ test.txt:1:12: note: CHECK-NOT: pattern specified here CHECK-NOT: test ^ llvm-svn: 180578
8 lines
200 B
Plaintext
8 lines
200 B
Plaintext
; RUN: FileCheck -input-file %s %s 2>&1 | FileCheck -check-prefix DIAG %s
|
|
|
|
CHECK-NOT: test
|
|
|
|
DIAG: CHECK-NOT: pattern specified here
|
|
DIAG-NEXT: CHECK-NOT: test
|
|
DIAG-NEXT: {{^ \^}}
|