# REQUIRES: backtrace ## Test the diagnostics produced when LLD crashes. # RUN: env FORCE_LLD_DIAGNOSTICS_CRASH=1 not --crash ld.lld -o /dev/null 2>&1 | FileCheck %s ## Check the crash text has the correct structure. # CHECK: crashing due to environment variable FORCE_LLD_DIAGNOSTICS_CRASH # CHECK: PLEASE submit a bug report to {{.*}} and include the crash backtrace # CHECK: Stack dump: