crash-report.c revision a61724096114337cabc8cc51246324874cc004e4
1// RUN: rm %T/crash-report-*.c %T/crash-report-*.sh
2// RUN: TMP=%T %clang -fsyntax-only %s -DFOO=BAR 2>&1 | FileCheck %s
3// RUN: FileCheck --check-prefix=CHECKSRC %s < %T/crash-report-*.c
4// RUN: FileCheck --check-prefix=CHECKSH %s < %T/crash-report-*.sh
5// REQUIRES: crash-recovery
6// XFAIL: mingw32,win32
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: {{.*}}.c
11FOO
12// CHECKSRC: FOO
13// CHECKSH: -D FOO=BAR
14