11 lines · plain
1# REQUIRES: backtrace2 3## Test the diagnostics produced when LLD crashes.4 5# RUN: env FORCE_LLD_DIAGNOSTICS_CRASH=1 not --crash ld.lld -o /dev/null 2>&1 | FileCheck %s6 7## Check the crash text has the correct structure.8# CHECK: crashing due to environment variable FORCE_LLD_DIAGNOSTICS_CRASH9# CHECK: PLEASE submit a bug report to {{.*}} and include the crash backtrace10# CHECK: Stack dump:11