Justin Bogner | 90e8e2c | 2015-06-04 00:30:22 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: mkdir %t |
| 3 | // RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s 2>&1 | FileCheck %s |
| 4 | // RUN: cat %t/crash-report-header-*.h | FileCheck --check-prefix=CHECKSRC "%s" |
| 5 | // RUN: cat %t/crash-report-header-*.sh | FileCheck --check-prefix=CHECKSH "%s" |
| 6 | // REQUIRES: crash-recovery |
| 7 | |
Yaron Keren | d37c0fd | 2015-07-26 04:59:52 +0000 | [diff] [blame^] | 8 | // because of the glob (*.h, *.sh) |
| 9 | // REQUIRES: shell |
| 10 | |
Justin Bogner | 90e8e2c | 2015-06-04 00:30:22 +0000 | [diff] [blame] | 11 | #pragma clang __debug parser_crash |
| 12 | // CHECK: Preprocessed source(s) and associated run script(s) are located at: |
| 13 | // CHECK-NEXT: note: diagnostic msg: {{.*}}.h |
| 14 | FOO |
| 15 | // CHECKSRC: FOO |
| 16 | // CHECKSH: "-cc1" |
| 17 | // CHECKSH: "-main-file-name" "crash-report-header.h" |
| 18 | // CHECKSH: "crash-report-header-{{[^ ]*}}.h" |