1 ; A test that the option -verify-each reports the last pass run
2 ; when a failure occurs.
4 ; 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
5 ; 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
7 ; CHECK_MODULE: Running pass: TriggerVerifierErrorPass on [module]
8 ; CHECK_MODULE: Broken module found after pass "TriggerVerifierErrorPass", compilation aborted!
10 ; CHECK_FUNCTION: Running pass: TriggerVerifierErrorPass on main
11 ; CHECK_FUNCTION: Broken function found after pass "TriggerVerifierErrorPass", compilation aborted!
15 %retval = alloca i32, align 4
16 store i32 0, ptr %retval, align 4