summaryrefslogtreecommitdiffstats
path: root/llvm/test/FileCheck/check-not-diaginfo.txt
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2013-04-25 21:31:34 +0000
committerMichael Liao <michael.liao@intel.com>2013-04-25 21:31:34 +0000
commit0b707eb85eca55f392cfeb0130b1ce830c1da2fd (patch)
tree469e2013c26a8a54061ccb883241df18fbbc3446 /llvm/test/FileCheck/check-not-diaginfo.txt
parent128920d9faba3effcb9c264b313e6ab2bba758d7 (diff)
downloadbcm5719-llvm-0b707eb85eca55f392cfeb0130b1ce830c1da2fd.tar.gz
bcm5719-llvm-0b707eb85eca55f392cfeb0130b1ce830c1da2fd.zip
Remove SMLoc paired with CHECK-NOT patterns. Not functionality change.
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
Diffstat (limited to 'llvm/test/FileCheck/check-not-diaginfo.txt')
-rw-r--r--llvm/test/FileCheck/check-not-diaginfo.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/FileCheck/check-not-diaginfo.txt b/llvm/test/FileCheck/check-not-diaginfo.txt
new file mode 100644
index 00000000000..a4c3ca88401
--- /dev/null
+++ b/llvm/test/FileCheck/check-not-diaginfo.txt
@@ -0,0 +1,7 @@
+; 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: {{^ \^}}
OpenPOWER on IntegriCloud