annotate clang/test/VFS/subframework-symlink.m @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // FIXME: PR44221
anatofuz
parents:
diff changeset
2 // UNSUPPORTED: system-windows
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // Test that when a subframework is a symlink to another framework, we don't
anatofuz
parents:
diff changeset
5 // add it as a submodule to the enclosing framework. We also need to make clang
anatofuz
parents:
diff changeset
6 // to infer module for the enclosing framework. For this we don't have
anatofuz
parents:
diff changeset
7 // a module map for the framework itself but have it in a parent directory.
anatofuz
parents:
diff changeset
8 //
anatofuz
parents:
diff changeset
9 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
10 // RUN: mkdir %t
anatofuz
parents:
diff changeset
11 // RUN: echo 'framework module * {}' > %t/module.modulemap
anatofuz
parents:
diff changeset
12 // RUN: mkdir -p %t/WithSubframework.framework/Headers
anatofuz
parents:
diff changeset
13 // RUN: echo '#include <Foo/Foo.h>' > %t/WithSubframework.framework/Headers/WithSubframework.h
anatofuz
parents:
diff changeset
14 // RUN: cp -R %S/Inputs/Foo.framework %t
anatofuz
parents:
diff changeset
15 // RUN: mkdir -p %t/WithSubframework.framework/Frameworks
anatofuz
parents:
diff changeset
16 // RUN: ln -s %t/Foo.framework %t/WithSubframework.framework/Frameworks
anatofuz
parents:
diff changeset
17 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache1 -F %t -fsyntax-only %s
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // Adding VFS overlay shouldn't change this behavior.
anatofuz
parents:
diff changeset
20 //
anatofuz
parents:
diff changeset
21 // RUN: sed -e "s@INPUT_DIR@/InvalidPath@g" -e "s@OUT_DIR@/InvalidPath@g" %S/Inputs/vfsoverlay.yaml > %t/overlay.yaml
anatofuz
parents:
diff changeset
22 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache2 -F %t -fsyntax-only %s -ivfsoverlay %t/overlay.yaml
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 #import <WithSubframework/WithSubframework.h>