summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-07-02 17:08:36 +0000
committerVedant Kumar <vsk@apple.com>2018-07-02 17:08:36 +0000
commit9b6c096fb56310591819705a671b8edee4d50271 (patch)
tree5574de6451b23317160fadc1d6540de33adeffb8
parentac193d4b5cca5ada4f27897300d53f7e521cd473 (diff)
downloadbcm5719-llvm-9b6c096fb56310591819705a671b8edee4d50271.tar.gz
bcm5719-llvm-9b6c096fb56310591819705a671b8edee4d50271.zip
Tighten up a test for -check-debugify, NFC
Use an -implicit-check-not to make sure an error which should not occur in fact does not occur before the first CHECK line. Suggested by Paul Robinson in post-commit feedback for r335897. llvm-svn: 336123
-rw-r--r--llvm/test/DebugInfo/debugify-report-missing-locs-only.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/debugify-report-missing-locs-only.ll b/llvm/test/DebugInfo/debugify-report-missing-locs-only.ll
index c559b9656a5..43682768c58 100644
--- a/llvm/test/DebugInfo/debugify-report-missing-locs-only.ll
+++ b/llvm/test/DebugInfo/debugify-report-missing-locs-only.ll
@@ -1,11 +1,10 @@
-; RUN: opt -check-debugify < %s -S -o - 2>&1 | FileCheck %s
+; RUN: opt -check-debugify < %s -S -o - 2>&1 | FileCheck %s -implicit-check-not "ERROR: Instruction with empty DebugLoc in function bar"
; CHECK: ERROR: Instruction with empty DebugLoc in function foo -- ret void
define void @foo() !dbg !6 {
ret void
}
-; CHECK-NOT: ERROR: Instruction with empty DebugLoc in function bar
define i32 @bar() !dbg !9 {
ret i32 0, !dbg !15
}
OpenPOWER on IntegriCloud