1 // RUN: rm -rf %t 2 // RUN: mkdir %t 3 // RUN: not env TMPDIR=%t TEMP=%t TMP=%t RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s \ 4 // RUN: -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \ 5 // RUN: -iprefix /the/prefix -iwithprefix /tmp -iwithprefixbefore /tmp/ \ 6 // RUN: -Xclang -internal-isystem -Xclang /tmp/ \ 7 // RUN: -Xclang -internal-externc-isystem -Xclang /tmp/ \ 8 // RUN: -DFOO=BAR 2>&1 | FileCheck %s 9 // RUN: cat %t/crash-report-*.c | FileCheck --check-prefix=CHECKSRC %s 10 // RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s 11 // REQUIRES: crash-recovery 12 13 // because of the glob (*.c, *.sh) 14 // REQUIRES: shell 15 16 #pragma clang __debug parser_crash 17 // CHECK: Preprocessed source(s) and associated run script(s) are located at: 18 // CHECK-NEXT: note: diagnostic msg: {{.*}}crash-report-{{.*}}.c 19 FOO 20 // CHECKSRC: FOO 21 // CHECKSH: "-cc1" 22 // CHECKSH: "-main-file-name" "crash-report.c" 23 // CHECKSH: "-D" "FOO=BAR" 24 // CHECKSH-NOT: "-F/tmp/" 25 // CHECKSH-NOT: "-I" "/tmp/" 26 // CHECKSH-NOT: "-idirafter" "/tmp/" 27 // CHECKSH-NOT: "-iquote" "/tmp/" 28 // CHECKSH-NOT: "-isystem" "/tmp/" 29 // CHECKSH-NOT: "-iprefix" "/the/prefix" 30 // CHECKSH-NOT: "-iwithprefix" "/tmp/" 31 // CHECKSH-NOT: "-iwithprefixbefore" "/tmp/" 32 // CHECKSH-NOT: "-internal-isystem" "/tmp/" 33 // CHECKSH-NOT: "-internal-externc-isystem" "/tmp/" 34 // CHECKSH-NOT: "-dwarf-debug-flags" 35 // CHECKSH: "crash-report-{{[^ ]*}}.c" 36