xref: /llvm-project/clang/test/Modules/implementation-of-module-private.m (revision c3efd52770ca964ba46287298c1d2f7697fd446c)
1// RUN: rm -rf %t
2// RUN: split-file %s %t
3
4//--- frameworks/FW.framework/Modules/module.modulemap
5framework module FW {}
6//--- frameworks/FW.framework/Modules/module.private.modulemap
7framework module FW_Private {}
8
9//--- tu.m
10@import FW_Private; // expected-error{{@import of module 'FW_Private' in implementation of 'FW'; use #import}}
11
12// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -fimplicit-module-maps \
13// RUN:   -fmodule-name=FW -F %t/frameworks %t/tu.m -verify
14