NAKAMURA Takumi | e575679 | 2012-07-17 05:09:20 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: mkdir %t |
Chad Rosier | 37302ea | 2012-07-25 17:52:16 +0000 | [diff] [blame] | 3 | // RUN: env TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s \ |
Chad Rosier | a4ba28f | 2012-07-25 18:38:57 +0000 | [diff] [blame] | 4 | // RUN: -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \ |
| 5 | // RUN: -iprefix /the/prefix -iwithprefix /tmp -iwithprefixbefore /tmp/ \ |
Chad Rosier | 699c6cd | 2012-07-25 18:55:43 +0000 | [diff] [blame] | 6 | // RUN: -internal-isystem /tmp/ -internal-externc-isystem /tmp/ \ |
Chad Rosier | a4ba28f | 2012-07-25 18:38:57 +0000 | [diff] [blame] | 7 | // RUN: -DFOO=BAR 2>&1 | FileCheck %s |
NAKAMURA Takumi | e575679 | 2012-07-17 05:09:20 +0000 | [diff] [blame] | 8 | // RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s |
| 9 | // RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s |
David Blaikie | e75d9cf | 2012-06-29 22:03:56 +0000 | [diff] [blame] | 10 | // REQUIRES: crash-recovery |
| 11 | |
| 12 | #pragma clang __debug parser_crash |
| 13 | // CHECK: Preprocessed source(s) and associated run script(s) are located at: |
David Blaikie | a617240 | 2012-07-02 22:07:20 +0000 | [diff] [blame] | 14 | // CHECK-NEXT: note: diagnostic msg: {{.*}}.c |
| 15 | FOO |
| 16 | // CHECKSRC: FOO |
Chad Rosier | 37302ea | 2012-07-25 17:52:16 +0000 | [diff] [blame] | 17 | // CHECKSH: -D "FOO=BAR" |
| 18 | // CHECKSH-NOT: -F/tmp/ |
| 19 | // CHECKSH-NOT: -I /tmp/ |
Chad Rosier | a4ba28f | 2012-07-25 18:38:57 +0000 | [diff] [blame] | 20 | // CHECKSH-NOT: -idirafter /tmp/ |
Chad Rosier | 37302ea | 2012-07-25 17:52:16 +0000 | [diff] [blame] | 21 | // CHECKSH-NOT: -iquote /tmp/ |
Chad Rosier | a4ba28f | 2012-07-25 18:38:57 +0000 | [diff] [blame] | 22 | // CHECKSH-NOT: -isystem /tmp/ |
| 23 | // CHECKSH-NOT: -iprefix /the/prefix |
| 24 | // CHECKSH-NOT: -iwithprefix /tmp/ |
| 25 | // CHECKSH-NOT: -iwithprefixbefore /tmp/ |
Chad Rosier | 699c6cd | 2012-07-25 18:55:43 +0000 | [diff] [blame] | 26 | // CHECKSH-NOT: -internal-isystem /tmp/ |
| 27 | // CHECKSH-NOT: -internal-externc-isystem /tmp/ |