mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
011b4d4706
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D145727
18 lines
753 B
C
18 lines
753 B
C
// RUN: export LSAN_OPTIONS=detect_leaks=0
|
|
// RUN: rm -rf "%t"
|
|
// RUN: mkdir "%t"
|
|
// RUN: cp "%s" "%t/crash report spaces.c"
|
|
// RUN: env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTIONS=1 not %clang -fsyntax-only "%t/crash report spaces.c" 2>&1 | FileCheck "%s"
|
|
// RUN: cat "%t/crash report spaces"-*.c | FileCheck --check-prefix=CHECKSRC "%s"
|
|
// RUN: cat "%t/crash report spaces"-*.sh | FileCheck --check-prefix=CHECKSH "%s"
|
|
// REQUIRES: crash-recovery
|
|
|
|
#pragma clang __debug parser_crash
|
|
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
|
|
// CHECK-NEXT: note: diagnostic msg: {{.*}}.c
|
|
FOO
|
|
// CHECKSRC: FOO
|
|
// CHECKSH: "-cc1"
|
|
// CHECKSH: "-main-file-name" "crash report spaces.c"
|
|
// CHECKSH: "crash report spaces-{{[^ ]*}}.c"
|