1 ; REQUIRES: asserts, backtrace
3 ; RUN: not --crash opt -passes=trigger-crash-module %s -disable-output 2>&1 | \
4 ; RUN: FileCheck %s --check-prefix=CHECK-MODULE
6 ; CHECK-MODULE: Stack dump:
7 ; CHECK-MODULE-NEXT: 0. Program arguments:
8 ; CHECK-MODULE-NEXT: 1. Running pass "trigger-crash-module" on module "{{.*}}crash-stack-trace.ll"
10 ; RUN: not --crash opt -passes='sroa,trigger-crash-function' %s -disable-output 2>&1 | \
11 ; RUN: FileCheck %s --check-prefix=CHECK-FUNCTION
13 ; CHECK-FUNCTION: Stack dump:
14 ; CHECK-FUNCTION-NEXT: 0. Program arguments:
15 ; CHECK-FUNCTION-NEXT: 1. Running pass "function(sroa<modify-cfg>,trigger-crash-function)" on module "{{.*}}crash-stack-trace.ll"
16 ; CHECK-FUNCTION-NEXT: 2. Running pass "trigger-crash-function" on function "foo"