18 lines · c
1// RUN: export LSAN_OPTIONS=detect_leaks=02// RUN: rm -rf "%t"3// RUN: mkdir "%t"4// RUN: cp "%s" "%t/crash report spaces.c"5// RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 not %clang -fsyntax-only "%t/crash report spaces.c" 2>&1 | FileCheck "%s"6// RUN: cat "%t/crash report spaces"-*.c | FileCheck --check-prefix=CHECKSRC "%s"7// RUN: cat "%t/crash report spaces"-*.sh | FileCheck --check-prefix=CHECKSH "%s"8// REQUIRES: crash-recovery9 10#pragma clang __debug parser_crash11// CHECK: Preprocessed source(s) and associated run script(s) are located at:12// CHECK-NEXT: note: diagnostic msg: {{.*}}.c13FOO14// CHECKSRC: FOO15// CHECKSH: "-cc1"16// CHECKSH: "-main-file-name" "crash report spaces.c"17// CHECKSH: "crash report spaces-{{[^ ]*}}.c"18