1 // RUN: export LSAN_OPTIONS=detect_leaks=0 2 // 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-recovery 9 10 #pragma clang __debug parser_crash 11 // CHECK: Preprocessed source(s) and associated run script(s) are located at: 12 // CHECK-NEXT: note: diagnostic msg: {{.*}}.c 13 FOO 14 // CHECKSRC: FOO 15 // CHECKSH: "-cc1" 16 // CHECKSH: "-main-file-name" "crash report spaces.c" 17 // CHECKSH: "crash report spaces-{{[^ ]*}}.c" 18