[llvm] r336123 - Tighten up a test for -check-debugify, NFC
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 2 10:08:36 PDT 2018
Author: vedantk
Date: Mon Jul 2 10:08:36 2018
New Revision: 336123
URL: http://llvm.org/viewvc/llvm-project?rev=336123&view=rev
Log:
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.
Modified:
llvm/trunk/test/DebugInfo/debugify-report-missing-locs-only.ll
Modified: llvm/trunk/test/DebugInfo/debugify-report-missing-locs-only.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/debugify-report-missing-locs-only.ll?rev=336123&r1=336122&r2=336123&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/debugify-report-missing-locs-only.ll (original)
+++ llvm/trunk/test/DebugInfo/debugify-report-missing-locs-only.ll Mon Jul 2 10:08:36 2018
@@ -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
}
More information about the llvm-commits
mailing list