Clean up c-index-test command line usage a bit by requiring a "-test-load-tu" option when testing clang_loadTranslationUnit(). Running c-index-test without the correct arguments now also prints a useful summary of its correct usage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89115 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Index/c-index-pch.c b/test/Index/c-index-pch.c
index cbd0786..1ce1085 100644
--- a/test/Index/c-index-pch.c
+++ b/test/Index/c-index-pch.c
@@ -1,7 +1,7 @@
// RUN: clang-cc -emit-pch -x c -o %t.pch %S/Inputs/c-index-pch.h
// RUN: clang-cc -include-pch %t.pch -x c -emit-pch -o %t.ast %s
-// RUN: c-index-test %t.ast all | FileCheck -check-prefix=ALL %s
-// RUN: c-index-test %t.ast local | FileCheck -check-prefix=LOCAL %s
+// RUN: c-index-test -test-load-tu %t.ast all | FileCheck -check-prefix=ALL %s
+// RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=LOCAL %s
// ALL: FunctionDecl=foo
// ALL: VarDecl=bar
// ALL: FunctionDecl=wibble