blob: 7adaf42a2c95ea1341bf01a03e6f40c67410ed24 [file] [log] [blame]
NAKAMURA Takumie5756792012-07-17 05:09:20 +00001// RUN: rm -rf %t
2// RUN: mkdir %t
Chad Rosier37302ea2012-07-25 17:52:16 +00003// RUN: env TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s \
Chad Rosiera4ba28f2012-07-25 18:38:57 +00004// RUN: -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \
5// RUN: -iprefix /the/prefix -iwithprefix /tmp -iwithprefixbefore /tmp/ \
Chad Rosier699c6cd2012-07-25 18:55:43 +00006// RUN: -internal-isystem /tmp/ -internal-externc-isystem /tmp/ \
Chad Rosiera4ba28f2012-07-25 18:38:57 +00007// RUN: -DFOO=BAR 2>&1 | FileCheck %s
NAKAMURA Takumie5756792012-07-17 05:09:20 +00008// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
9// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
David Blaikiee75d9cf2012-06-29 22:03:56 +000010// REQUIRES: crash-recovery
11
12#pragma clang __debug parser_crash
13// CHECK: Preprocessed source(s) and associated run script(s) are located at:
David Blaikiea6172402012-07-02 22:07:20 +000014// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
15FOO
16// CHECKSRC: FOO
Chad Rosier37302ea2012-07-25 17:52:16 +000017// CHECKSH: -D "FOO=BAR"
18// CHECKSH-NOT: -F/tmp/
19// CHECKSH-NOT: -I /tmp/
Chad Rosiera4ba28f2012-07-25 18:38:57 +000020// CHECKSH-NOT: -idirafter /tmp/
Chad Rosier37302ea2012-07-25 17:52:16 +000021// CHECKSH-NOT: -iquote /tmp/
Chad Rosiera4ba28f2012-07-25 18:38:57 +000022// CHECKSH-NOT: -isystem /tmp/
23// CHECKSH-NOT: -iprefix /the/prefix
24// CHECKSH-NOT: -iwithprefix /tmp/
25// CHECKSH-NOT: -iwithprefixbefore /tmp/
Chad Rosier699c6cd2012-07-25 18:55:43 +000026// CHECKSH-NOT: -internal-isystem /tmp/
27// CHECKSH-NOT: -internal-externc-isystem /tmp/