blob: 75340035dd5a4e024bc444172f45488565c684ed [file] [log] [blame]
David Blaikiea6172402012-07-02 22:07:20 +00001// 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
David Blaikiee75d9cf2012-06-29 22:03:56 +00005// REQUIRES: crash-recovery
NAKAMURA Takumi1ba47232012-06-30 00:29:03 +00006// XFAIL: mingw32,win32
David Blaikiee75d9cf2012-06-29 22:03:56 +00007
8#pragma clang __debug parser_crash
9// CHECK: Preprocessed source(s) and associated run script(s) are located at:
David Blaikiea6172402012-07-02 22:07:20 +000010// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
11FOO
12// CHECKSRC: FOO
13// CHECKSH: -D FOO=BAR