brintos

brintos / llvm-project-archived public Read only

0
0
Text · 676 B · 04865a0 Raw
17 lines · c
1// RUN: export LSAN_OPTIONS=detect_leaks=02// RUN: rm -rf %t3// RUN: mkdir %t4// RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 not %clang -fsyntax-only %s 2>&1 | FileCheck %s5// RUN: cat %t/crash-report-header-*.h | FileCheck --check-prefix=CHECKSRC "%s"6// RUN: cat %t/crash-report-header-*.sh | FileCheck --check-prefix=CHECKSH "%s"7// REQUIRES: crash-recovery8 9#pragma clang __debug parser_crash10// CHECK: Preprocessed source(s) and associated run script(s) are located at:11// CHECK-NEXT: note: diagnostic msg: {{.*}}.h12FOO13// CHECKSRC: FOO14// CHECKSH: "-cc1"15// CHECKSH: "-main-file-name" "crash-report-header.h"16// CHECKSH: "crash-report-header-{{[^ ]*}}.h"17