2 // UNSUPPORTED: system-windows
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.
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
19 // Adding VFS overlay shouldn't change this behavior.
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
24 #import <WithSubframework/WithSubframework.h>