Mercurial > hg > CbC > CbC_llvm
comparison clang/test/VFS/subframework-symlink.m @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // FIXME: PR44221 | |
2 // UNSUPPORTED: system-windows | |
3 | |
4 // Test that when a subframework is a symlink to another framework, we don't | |
5 // add it as a submodule to the enclosing framework. We also need to make clang | |
6 // to infer module for the enclosing framework. For this we don't have | |
7 // a module map for the framework itself but have it in a parent directory. | |
8 // | |
9 // RUN: rm -rf %t | |
10 // RUN: mkdir %t | |
11 // RUN: echo 'framework module * {}' > %t/module.modulemap | |
12 // RUN: mkdir -p %t/WithSubframework.framework/Headers | |
13 // RUN: echo '#include <Foo/Foo.h>' > %t/WithSubframework.framework/Headers/WithSubframework.h | |
14 // RUN: cp -R %S/Inputs/Foo.framework %t | |
15 // RUN: mkdir -p %t/WithSubframework.framework/Frameworks | |
16 // RUN: ln -s %t/Foo.framework %t/WithSubframework.framework/Frameworks | |
17 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache1 -F %t -fsyntax-only %s | |
18 | |
19 // Adding VFS overlay shouldn't change this behavior. | |
20 // | |
21 // RUN: sed -e "s@INPUT_DIR@/InvalidPath@g" -e "s@OUT_DIR@/InvalidPath@g" %S/Inputs/vfsoverlay.yaml > %t/overlay.yaml | |
22 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache2 -F %t -fsyntax-only %s -ivfsoverlay %t/overlay.yaml | |
23 | |
24 #import <WithSubframework/WithSubframework.h> |