2018-06-13 14:48:40 +08:00
|
|
|
// FIXME: Instead of %T/crmdir, it would be nice to just use %t, but the
|
|
|
|
// filename ran into path length limits for the rm command on some Windows
|
|
|
|
// bots.
|
|
|
|
// RUN: rm -rf %T/crmdir
|
|
|
|
// RUN: mkdir -p %T/crmdir/i %T/crmdir/m
|
2014-06-21 06:59:50 +08:00
|
|
|
|
2018-06-13 14:48:40 +08:00
|
|
|
// RUN: env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%T/crmdir TEMP=%T/crmdir TMP=%T/crmdir \
|
|
|
|
// RUN: not %clang -fsyntax-only %s -I %S/Inputs/module -isysroot %/t/i/ \
|
|
|
|
// RUN: -fmodules -fmodules-cache-path=%T/crmdir/m/ -DFOO=BAR 2>&1 | FileCheck %s
|
2014-06-21 06:59:50 +08:00
|
|
|
|
2018-06-13 14:48:40 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %T/crmdir/crash-report-*.m
|
|
|
|
// RUN: FileCheck --check-prefix=CHECKSH %s -input-file %T/crmdir/crash-report-*.sh
|
2014-06-21 06:59:50 +08:00
|
|
|
// REQUIRES: crash-recovery
|
|
|
|
|
2018-07-21 06:36:33 +08:00
|
|
|
// FIXME: This test creates excessively deep directory hierarchies that cause
|
|
|
|
// problems on Windows.
|
|
|
|
// UNSUPPORTED: system-windows
|
|
|
|
|
2014-06-21 06:59:50 +08:00
|
|
|
@import simple;
|
|
|
|
const int x = MODULE_MACRO;
|
|
|
|
|
|
|
|
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
|
2014-06-24 16:01:01 +08:00
|
|
|
// CHECK-NEXT: note: diagnostic msg: {{.*}}.m
|
2014-06-21 06:59:50 +08:00
|
|
|
// CHECK-NEXT: note: diagnostic msg: {{.*}}.cache
|
|
|
|
|
|
|
|
// CHECKSRC: @import simple;
|
|
|
|
// CHECKSRC: const int x = 10;
|
|
|
|
|
2015-03-12 08:14:35 +08:00
|
|
|
// CHECKSH: # Crash reproducer
|
2015-07-09 14:58:31 +08:00
|
|
|
// CHECKSH-NEXT: # Driver args: "-fsyntax-only"
|
|
|
|
// CHECKSH-SAME: "-D" "FOO=BAR"
|
2015-03-12 08:14:35 +08:00
|
|
|
// CHECKSH-NEXT: # Original command: {{.*$}}
|
|
|
|
// CHECKSH-NEXT: "-cc1"
|
2015-12-02 11:13:50 +08:00
|
|
|
// CHECKSH: "-isysroot" "{{[^"]*}}/i/"
|
2014-10-22 02:03:08 +08:00
|
|
|
// CHECKSH: "-D" "FOO=BAR"
|
2015-12-02 11:13:50 +08:00
|
|
|
// CHECKSH-NOT: "-fmodules-cache-path="
|
2014-10-22 02:03:08 +08:00
|
|
|
// CHECKSH: "crash-report-modules-{{[^ ]*}}.m"
|
2018-06-12 19:51:22 +08:00
|
|
|
// CHECKSH: "-ivfsoverlay" "crash-report-modules-{{[^ ]*}}.cache{{(/|\\\\)}}vfs{{(/|\\\\)}}vfs.yaml"
|