// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%t/Frameworks %t/test.m -DHIDDEN_FIRST=1 \
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache
// RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%t/Frameworks %t/test.m -DHIDDEN_FIRST=0 \
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache
// UNSUPPORTED: -zos, -aix
// Test a case when Objective-C interface is imported both as hidden and as visible.
//--- Frameworks/Foundation.framework/Headers/Foundation.h
//--- Frameworks/Foundation.framework/Modules/module.modulemap
framework module Foundation
//--- Frameworks/Regular.framework/Headers/Regular.h
//--- Frameworks/Regular.framework/Modules/module.modulemap
framework module Regular
//--- Frameworks/RegularHider.framework/Headers/Visible.h
// Empty, file required to create a module.
//--- Frameworks/RegularHider.framework/Headers/Hidden.h
//--- Frameworks/RegularHider.framework/Modules/module.modulemap
framework module RegularHider
//--- test.m