// UNSUPPORTED: -zos, -aix
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%t/Frameworks %t/test.m \
// 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-functions.m \
// RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache
// Test a case when Objective-C interface ivars are present in two different modules.
//--- Frameworks/Foundation.framework/Headers/Foundation.h
//--- Frameworks/Foundation.framework/Modules/module.modulemap
framework module Foundation
//--- Frameworks/ObjCInterface.framework/Headers/ObjCInterface.h
//--- Frameworks/ObjCInterface.framework/Modules/module.modulemap
framework module ObjCInterface
//--- Frameworks/ObjCInterfaceCopy.framework/Headers/ObjCInterfaceCopy.h
// Inlined function present only in Copy.framework to make sure it uses decls from Copy module.
void
//--- Frameworks/ObjCInterfaceCopy.framework/Modules/module.modulemap
framework module ObjCInterfaceCopy
//--- test.m
//--- test-functions.m
void
void
void
void
void