aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/implementation-of-module-private.m
blob: f6ca2a8809c6b35a3ecf16bb10635969eea6715d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: rm -rf %t
// RUN: split-file %s %t

//--- frameworks/FW.framework/Modules/module.modulemap
framework module FW {}
//--- frameworks/FW.framework/Modules/module.private.modulemap
framework module FW_Private {}

//--- tu.m
@import FW_Private; // expected-error{{@import of module 'FW_Private' in implementation of 'FW'; use #import}}

// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -fimplicit-module-maps \
// RUN:   -fmodule-name=FW -F %t/frameworks %t/tu.m -verify