xref: /aosp_15_r20/external/clang/test/Driver/crash-report-header.h (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: rm -rf %t
2*67e74705SXin Li // RUN: mkdir %t
3*67e74705SXin Li // RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s 2>&1 | FileCheck %s
4*67e74705SXin Li // RUN: cat %t/crash-report-header-*.h | FileCheck --check-prefix=CHECKSRC "%s"
5*67e74705SXin Li // RUN: cat %t/crash-report-header-*.sh | FileCheck --check-prefix=CHECKSH "%s"
6*67e74705SXin Li // REQUIRES: crash-recovery
7*67e74705SXin Li 
8*67e74705SXin Li // because of the glob (*.h, *.sh)
9*67e74705SXin Li // REQUIRES: shell
10*67e74705SXin Li 
11*67e74705SXin Li #pragma clang __debug parser_crash
12*67e74705SXin Li // CHECK: Preprocessed source(s) and associated run script(s) are located at:
13*67e74705SXin Li // CHECK-NEXT: note: diagnostic msg: {{.*}}.h
14*67e74705SXin Li FOO
15*67e74705SXin Li // CHECKSRC: FOO
16*67e74705SXin Li // CHECKSH: "-cc1"
17*67e74705SXin Li // CHECKSH: "-main-file-name" "crash-report-header.h"
18*67e74705SXin Li // CHECKSH: "crash-report-header-{{[^ ]*}}.h"
19