crash-report.c revision 37302ead1c067ec984a75e847cd83c6881637e72
1// RUN: rm -rf %t 2// RUN: mkdir %t 3// RUN: env TMPDIR=%t TEMP=%t TMP=%t %clang -fsyntax-only %s \ 4// RUN: -F/tmp/ -I /tmp/ -iquote /tmp/ -DFOO=BAR 2>&1 | FileCheck %s 5// RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s 6// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s 7// REQUIRES: crash-recovery 8 9#pragma clang __debug parser_crash 10// CHECK: Preprocessed source(s) and associated run script(s) are located at: 11// CHECK-NEXT: note: diagnostic msg: {{.*}}.c 12FOO 13// CHECKSRC: FOO 14// CHECKSH: -D "FOO=BAR" 15// CHECKSH-NOT: -F/tmp/ 16// CHECKSH-NOT: -I /tmp/ 17// CHECKSH-NOT: -iquote /tmp/ 18