Justin Bogner | 33bdbc6 | 2014-10-21 18:03:08 +0000 | [diff] [blame] | 1 | // RUN: rm -rf "%t" |
| 2 | // RUN: mkdir "%t" |
Eric Liu | 159094a | 2017-07-10 16:05:48 +0000 | [diff] [blame] | 3 | // RUN: cp "%s" "%t/crash report spaces.c" |
Erich Keane | 6c48359 | 2017-12-11 18:14:51 +0000 | [diff] [blame] | 4 | // RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 %clang -fsyntax-only "%t/crash report spaces.c" 2>&1 | FileCheck "%s" |
Justin Bogner | 33bdbc6 | 2014-10-21 18:03:08 +0000 | [diff] [blame] | 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 | // because of the glob (*.c, *.sh) |
| 10 | // REQUIRES: shell |
| 11 | |
| 12 | #pragma clang __debug parser_crash |
| 13 | // CHECK: Preprocessed source(s) and associated run script(s) are located at: |
| 14 | // CHECK-NEXT: note: diagnostic msg: {{.*}}.c |
| 15 | FOO |
| 16 | // CHECKSRC: FOO |
| 17 | // CHECKSH: "-cc1" |
| 18 | // CHECKSH: "-main-file-name" "crash report spaces.c" |
| 19 | // CHECKSH: "crash report spaces-{{[^ ]*}}.c" |