blob: ffa375334c63b95995f3011477354a79d2509823 [file] [log] [blame]
NAKAMURA Takumie5756792012-07-17 05:09:20 +00001// RUN: rm -rf %t
2// RUN: mkdir %t
3// RUN: TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s -DFOO=BAR 2>&1 | FileCheck %s
4// 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
NAKAMURA Takumi1ba47232012-06-30 00:29:03 +00007// XFAIL: mingw32,win32
David Blaikiee75d9cf2012-06-29 22:03:56 +00008
9#pragma clang __debug parser_crash
10// CHECK: Preprocessed source(s) and associated run script(s) are located at:
David Blaikiea6172402012-07-02 22:07:20 +000011// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
12FOO
13// CHECKSRC: FOO
14// CHECKSH: -D FOO=BAR