llvm-project/llvm/test/Other/trigger-verifier-error.ll
chrulski-intel ff0d8a9a6c
Report pass name when -llvm-verify-each reports breakage (#71447)
Update the string reported to include the pass name of last pass when
running verifier after each pass.
2023-12-01 10:36:25 -08:00

19 lines
863 B
LLVM

; A test that the option -verify-each reports the last pass run
; when a failure occurs.
; RUN: not --crash opt -disable-output -debug-pass-manager -verify-each -passes="module(trigger-verifier-error)" %s 2>&1 | FileCheck %s --check-prefix=CHECK_MODULE
; RUN: not --crash opt -disable-output -debug-pass-manager -verify-each -passes="function(trigger-verifier-error)" %s 2>&1 | FileCheck %s --check-prefix=CHECK_FUNCTION
; CHECK_MODULE: Running pass: TriggerVerifierErrorPass on [module]
; CHECK_MODULE: Broken module found after pass "TriggerVerifierErrorPass", compilation aborted!
; CHECK_FUNCTION: Running pass: TriggerVerifierErrorPass on main
; CHECK_FUNCTION: Broken function found after pass "TriggerVerifierErrorPass", compilation aborted!
define i32 @main() {
entry:
%retval = alloca i32, align 4
store i32 0, ptr %retval, align 4
ret i32 0
}