From: Dmitri Gribenko Date: Thu, 27 Mar 2014 16:15:30 +0000 (+0000) Subject: Add a module cache path to the test that uses -fmodules X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23d02a09a2b9935dffdd5d5dde9b8bd5c3896da7;p=clang Add a module cache path to the test that uses -fmodules git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204938 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/annotate-comments-objc.m b/test/Index/annotate-comments-objc.m index 600b6f907c..bd32445f89 100644 --- a/test/Index/annotate-comments-objc.m +++ b/test/Index/annotate-comments-objc.m @@ -37,13 +37,14 @@ void functionBeforeImports(void); // RUN: rm -rf %t // RUN: mkdir %t +// RUN: mkdir %t/module-cache // Check that we serialize comment source locations properly. // RUN: %clang_cc1 -emit-pch -o %t/out.pch -F %S/Inputs/Frameworks %s // RUN: %clang_cc1 -include-pch %t/out.pch -F %S/Inputs/Frameworks -fsyntax-only %s // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s -F %S/Inputs/Frameworks > %t/out.c-index-direct -// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s -F %S/Inputs/Frameworks -fmodules > %t/out.c-index-modules +// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s -F %S/Inputs/Frameworks -fmodules -fmodules-cache-path=%t/module-cache > %t/out.c-index-modules // RUN: c-index-test -test-load-tu %t/out.pch all -F %S/Inputs/Frameworks > %t/out.c-index-pch // RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-direct