blob: 3e95a0de2516279dbd8ac335123bc86ef3c0a589 [file] [log] [blame]
Justin Bogner33bdbc62014-10-21 18:03:08 +00001// RUN: rm -rf "%t"
2// RUN: mkdir "%t"
Eric Liu159094a2017-07-10 16:05:48 +00003// RUN: cp "%s" "%t/crash report spaces.c"
Erich Keane6c483592017-12-11 18:14:51 +00004// 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 Bogner33bdbc62014-10-21 18:03:08 +00005// 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
15FOO
16// CHECKSRC: FOO
17// CHECKSH: "-cc1"
18// CHECKSH: "-main-file-name" "crash report spaces.c"
19// CHECKSH: "crash report spaces-{{[^ ]*}}.c"