2012-07-17 13:09:20 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
2012-07-26 01:52:16 +08:00
|
|
|
// RUN: env TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s \
|
|
|
|
// RUN: -F/tmp/ -I /tmp/ -iquote /tmp/ -DFOO=BAR 2>&1 | FileCheck %s
|
2012-07-17 13:09:20 +08:00
|
|
|
// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s
|
|
|
|
// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
|
2012-06-30 06:03:56 +08:00
|
|
|
// REQUIRES: crash-recovery
|
|
|
|
|
|
|
|
#pragma clang __debug parser_crash
|
|
|
|
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
|
2012-07-03 06:07:20 +08:00
|
|
|
// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
|
|
|
|
FOO
|
|
|
|
// CHECKSRC: FOO
|
2012-07-26 01:52:16 +08:00
|
|
|
// CHECKSH: -D "FOO=BAR"
|
|
|
|
// CHECKSH-NOT: -F/tmp/
|
|
|
|
// CHECKSH-NOT: -I /tmp/
|
|
|
|
// CHECKSH-NOT: -iquote /tmp/
|