diff options
Diffstat (limited to 'test/Driver/crash report spaces.c')
-rw-r--r-- | test/Driver/crash report spaces.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Driver/crash report spaces.c b/test/Driver/crash report spaces.c new file mode 100644 index 000000000000..9bc4626b48b8 --- /dev/null +++ b/test/Driver/crash report spaces.c @@ -0,0 +1,18 @@ +// RUN: rm -rf "%t" +// RUN: mkdir "%t" +// RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 %clang -fsyntax-only "%s" 2>&1 | FileCheck "%s" +// RUN: cat "%t/crash report spaces"-*.c | FileCheck --check-prefix=CHECKSRC "%s" +// RUN: cat "%t/crash report spaces"-*.sh | FileCheck --check-prefix=CHECKSH "%s" +// REQUIRES: crash-recovery + +// because of the glob (*.c, *.sh) +// REQUIRES: shell + +#pragma clang __debug parser_crash +// CHECK: Preprocessed source(s) and associated run script(s) are located at: +// CHECK-NEXT: note: diagnostic msg: {{.*}}.c +FOO +// CHECKSRC: FOO +// CHECKSH: "-cc1" +// CHECKSH: "-main-file-name" "crash report spaces.c" +// CHECKSH: "crash report spaces-{{[^ ]*}}.c" |