blob: 7c7d3ab0abd0f1ca87b080805ca7c8aeb02143be [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/ \
6// RUN: -DFOO=BAR 2>&1 | FileCheck %s
NAKAMURA Takumie5756792012-07-17 05:09:20 +00007// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
8// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
David Blaikiee75d9cf2012-06-29 22:03:56 +00009// REQUIRES: crash-recovery
10
11#pragma clang __debug parser_crash
12// CHECK: Preprocessed source(s) and associated run script(s) are located at:
David Blaikiea6172402012-07-02 22:07:20 +000013// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
14FOO
15// CHECKSRC: FOO
Chad Rosier37302ea2012-07-25 17:52:16 +000016// CHECKSH: -D "FOO=BAR"
17// CHECKSH-NOT: -F/tmp/
18// CHECKSH-NOT: -I /tmp/
Chad Rosiera4ba28f2012-07-25 18:38:57 +000019// CHECKSH-NOT: -idirafter /tmp/
Chad Rosier37302ea2012-07-25 17:52:16 +000020// CHECKSH-NOT: -iquote /tmp/
Chad Rosiera4ba28f2012-07-25 18:38:57 +000021// CHECKSH-NOT: -isystem /tmp/
22// CHECKSH-NOT: -iprefix /the/prefix
23// CHECKSH-NOT: -iwithprefix /tmp/
24// CHECKSH-NOT: -iwithprefixbefore /tmp/