1 | // RUN: rm -rf "%t" |
2 | // RUN: mkdir "%t" |
3 | // RUN: cp "%s" "%t/crash report spaces.c" |
4 | // 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" |
5 | // RUN: cat "%t/crash report spaces"-*.c | FileCheck --check-prefix=CHECKSRC "%s" |
6 | // RUN: cat "%t/crash report spaces"-*.sh | FileCheck --check-prefix=CHECKSH "%s" |
7 | // REQUIRES: crash-recovery |
8 | |
9 | #pragma clang __debug parser_crash |
10 | // CHECK: Preprocessed source(s) and associated run script(s) are located at: |
11 | // CHECK-NEXT: note: diagnostic msg: {{.*}}.c |
12 | FOO |
13 | // CHECKSRC: FOO |
14 | // CHECKSH: "-cc1" |
15 | // CHECKSH: "-main-file-name" "crash report spaces.c" |
16 | // CHECKSH: "crash report spaces-{{[^ ]*}}.c" |
17 | |