blob: f6ca2a8809c6b35a3ecf16bb10635969eea6715d [file] [log] [blame]
Jan Svobodac3efd522023-01-19 17:02:42 -08001// 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