blob: 9476adadacba1c66d97ac01f1ab90b48776c0bd7 [file] [log] [blame]
NAKAMURA Takumie5756792012-07-17 05:09:20 +00001// RUN: rm -rf %t
2// RUN: mkdir %t
NAKAMURA Takumia555f2b2012-07-17 12:00:24 +00003// RUN: env TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s -DFOO=BAR 2>&1 | FileCheck %s
NAKAMURA Takumie5756792012-07-17 05:09:20 +00004// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
5// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
David Blaikiee75d9cf2012-06-29 22:03:56 +00006// REQUIRES: crash-recovery
7
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