NAKAMURA Takumi | e575679 | 2012-07-17 05:09:20 +0000 | [diff] [blame^] | 1 | // 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 Blaikie | e75d9cf | 2012-06-29 22:03:56 +0000 | [diff] [blame] | 6 | // REQUIRES: crash-recovery |
NAKAMURA Takumi | 1ba4723 | 2012-06-30 00:29:03 +0000 | [diff] [blame] | 7 | // XFAIL: mingw32,win32 |
David Blaikie | e75d9cf | 2012-06-29 22:03:56 +0000 | [diff] [blame] | 8 | |
| 9 | #pragma clang __debug parser_crash |
| 10 | // CHECK: Preprocessed source(s) and associated run script(s) are located at: |
David Blaikie | a617240 | 2012-07-02 22:07:20 +0000 | [diff] [blame] | 11 | // CHECK-NEXT: note: diagnostic msg: {{.*}}.c |
| 12 | FOO |
| 13 | // CHECKSRC: FOO |
| 14 | // CHECKSH: -D FOO=BAR |