Jan Svoboda | c3efd52 | 2023-01-19 17:02:42 -0800 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: split-file %s %t |
| 3 | |
| 4 | //--- frameworks/FW.framework/Modules/module.modulemap |
| 5 | framework module FW {} |
| 6 | //--- frameworks/FW.framework/Modules/module.private.modulemap |
| 7 | framework 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 |