brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 88946e8 Raw
25 lines · plain
1// FIXME: PR442212// UNSUPPORTED: system-windows3 4// Test that when a subframework is a symlink to another framework, we don't5// add it as a submodule to the enclosing framework. We also need to make clang6// to infer module for the enclosing framework. For this we don't have7// a module map for the framework itself but have it in a parent directory.8//9// RUN: rm -rf %t10// RUN: mkdir %t11// RUN: echo 'framework module * {}' > %t/module.modulemap12// RUN: mkdir -p %t/WithSubframework.framework/Headers13// RUN: echo '#include <Foo/Foo.h>' > %t/WithSubframework.framework/Headers/WithSubframework.h14// RUN: cp -R %S/Inputs/Foo.framework %t15// RUN: mkdir -p %t/WithSubframework.framework/Frameworks16// RUN: ln -s %t/Foo.framework %t/WithSubframework.framework/Frameworks17// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache1 -F %t -fsyntax-only %s18 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.yaml22// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache2 -F %t -fsyntax-only %s -ivfsoverlay %t/overlay.yaml23 24#import <WithSubframework/WithSubframework.h>25