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