xref: /llvm-project/clang/test/Driver/crash-report-header.h (revision 011b4d4706eea722d63438892afefdb8152b7b62)
1 // RUN: export LSAN_OPTIONS=detect_leaks=0
2 // RUN: rm -rf %t
3 // RUN: mkdir %t
4 // RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 not %clang -fsyntax-only %s 2>&1 | FileCheck %s
5 // 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-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: {{.*}}.h
12 FOO
13 // CHECKSRC: FOO
14 // CHECKSH: "-cc1"
15 // CHECKSH: "-main-file-name" "crash-report-header.h"
16 // CHECKSH: "crash-report-header-{{[^ ]*}}.h"
17