brintos

brintos / llvm-project-archived public Read only

0
0
Text · 863 B · 692758c Raw
19 lines · plain
1; A test that the option -verify-each reports the last pass run2; when a failure occurs.3 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_MODULE5; RUN: not --crash opt -disable-output -debug-pass-manager -verify-each -passes="function(trigger-verifier-error)" %s 2>&1 | FileCheck %s --check-prefix=CHECK_FUNCTION6 7; CHECK_MODULE: Running pass: TriggerVerifierErrorPass on [module]8; CHECK_MODULE: Broken module found after pass "TriggerVerifierErrorPass", compilation aborted!9 10; CHECK_FUNCTION: Running pass: TriggerVerifierErrorPass on main11; CHECK_FUNCTION: Broken function found after pass "TriggerVerifierErrorPass", compilation aborted!12 13define i32 @main() {14entry:15  %retval = alloca i32, align 416  store i32 0, ptr %retval, align 417  ret i32 018}19