xref: /aosp_15_r20/external/clang/test/Index/create-tu-fail.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: rm -f %t.c
2*67e74705SXin Li // RUN: touch %t.c
3*67e74705SXin Li // RUN: c-index-test -write-pch %t.pch %t.c
4*67e74705SXin Li // RUN: cp %s %t.c
5*67e74705SXin Li // RUN: not c-index-test -test-load-tu %t.pch local 2>&1 | FileCheck %s
6*67e74705SXin Li 
7*67e74705SXin Li // rdar://11558355
8*67e74705SXin Li // Unfortunately this would crash reliably only via valgrind.
9*67e74705SXin Li 
10*67e74705SXin Li // CHECK: Unable to load translation unit
11