aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Index/crash-recovery.c
blob: 5e1da41076dae4e51b0f80146632cb36c757acf4 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: export LSAN_OPTIONS=detect_leaks=0
// RUN: not c-index-test -test-load-source all %s 2> %t.err
// RUN: FileCheck < %t.err -check-prefix=CHECK-LOAD-SOURCE-CRASH %s
// CHECK-LOAD-SOURCE-CRASH: Unable to load translation unit
// RUN: env LIBCLANG_DISABLE_CRASH_RECOVERY=1 not --crash c-index-test -test-load-source all %s
//
// REQUIRES: crash-recovery
// UNSUPPORTED: libstdcxx-safe-mode

#pragma clang __debug crash