blob: e6da0873673aaecb82cb563d3e01f038c6c9e45d [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"
Hans Wennborg73bf3202018-06-12 11:51:22 +00004// 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"
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
Justin Bogner33bdbc62014-10-21 18:03:08 +00009#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
12FOO
13// CHECKSRC: FOO
14// CHECKSH: "-cc1"
15// CHECKSH: "-main-file-name" "crash report spaces.c"
16// CHECKSH: "crash report spaces-{{[^ ]*}}.c"