xref: /llvm-project/clang/test/Index/crash-recovery.c (revision 011b4d4706eea722d63438892afefdb8152b7b62)
1 // RUN: export LSAN_OPTIONS=detect_leaks=0
2 // RUN: not c-index-test -test-load-source all %s 2> %t.err
3 // RUN: FileCheck < %t.err -check-prefix=CHECK-LOAD-SOURCE-CRASH %s
4 // CHECK-LOAD-SOURCE-CRASH: Unable to load translation unit
5 // RUN: env LIBCLANG_DISABLE_CRASH_RECOVERY=1 not --crash c-index-test -test-load-source all %s
6 //
7 // REQUIRES: crash-recovery
8 // UNSUPPORTED: libstdcxx-safe-mode
9 
10 #pragma clang __debug crash
11