xref: /llvm-project/lld/test/ELF/crash-report.test (revision dfb77f2e99a18d5fa61763961f977993f1943f59)
1# REQUIRES: backtrace
2
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 %s
6
7## Check the crash text has the correct structure.
8# CHECK: crashing due to environment variable FORCE_LLD_DIAGNOSTICS_CRASH
9# CHECK: PLEASE submit a bug report to {{.*}} and include the crash backtrace
10# CHECK: Stack dump:
11