1 // RUN: rm -rf %t 2 // RUN: mkdir %t 3 // RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 not %clang -fsyntax-only %s 2>&1 | FileCheck %s 4 // RUN: cat %t/crash-report-header-*.h | FileCheck --check-prefix=CHECKSRC "%s" 5 // RUN: cat %t/crash-report-header-*.sh | FileCheck --check-prefix=CHECKSH "%s" 6 // REQUIRES: crash-recovery 7 8 #pragma clang __debug parser_crash 9 // CHECK: Preprocessed source(s) and associated run script(s) are located at: 10 // CHECK-NEXT: note: diagnostic msg: {{.*}}.h 11 FOO 12 // CHECKSRC: FOO 13 // CHECKSH: "-cc1" 14 // CHECKSH: "-main-file-name" "crash-report-header.h" 15 // CHECKSH: "crash-report-header-{{[^ ]*}}.h" 16