2015-06-04 08:30:22 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
2018-06-12 19:51:22 +08:00
|
|
|
// RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 not %clang -fsyntax-only %s 2>&1 | FileCheck %s
|
2015-06-04 08:30:22 +08:00
|
|
|
// RUN: cat %t/crash-report-header-*.h | FileCheck --check-prefix=CHECKSRC "%s"
|
|
|
|
// RUN: cat %t/crash-report-header-*.sh | FileCheck --check-prefix=CHECKSH "%s"
|
|
|
|
// REQUIRES: crash-recovery
|
|
|
|
|
|
|
|
#pragma clang __debug parser_crash
|
|
|
|
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
|
|
|
|
// CHECK-NEXT: note: diagnostic msg: {{.*}}.h
|
|
|
|
FOO
|
|
|
|
// CHECKSRC: FOO
|
|
|
|
// CHECKSH: "-cc1"
|
|
|
|
// CHECKSH: "-main-file-name" "crash-report-header.h"
|
|
|
|
// CHECKSH: "crash-report-header-{{[^ ]*}}.h"
|