1*67e74705SXin Li// RUN: rm -rf %t 2*67e74705SXin Li// RUN: rm -rf %t.mcp 3*67e74705SXin Li// RUN: mkdir -p %t 4*67e74705SXin Li// RUN: cp -r %S/Inputs/AddRemovePrivate.framework %t/AddRemovePrivate.framework 5*67e74705SXin Li 6*67e74705SXin Li// Build with module.private.modulemap 7*67e74705SXin Li// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.mcp -fdisable-module-hash -F %t %s -verify -DP 8*67e74705SXin Li// RUN: cp %t.mcp/AddRemovePrivate.pcm %t/with.pcm 9*67e74705SXin Li 10*67e74705SXin Li// Build without module.private.modulemap 11*67e74705SXin Li// RUN: rm %t/AddRemovePrivate.framework/Modules/module.private.modulemap 12*67e74705SXin Li// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.mcp -fdisable-module-hash -F %t %s -verify 13*67e74705SXin Li// RUN: not diff %t.mcp/AddRemovePrivate.pcm %t/with.pcm 14*67e74705SXin Li// RUN: cp %t.mcp/AddRemovePrivate.pcm %t/without.pcm 15*67e74705SXin Li// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.mcp -fdisable-module-hash -F %t %s -DP 2>&1 | FileCheck %s 16*67e74705SXin Li// CHECK: no submodule named 'Private' 17*67e74705SXin Li 18*67e74705SXin Li// Build with module.private.modulemap (again) 19*67e74705SXin Li// RUN: cp %S/Inputs/AddRemovePrivate.framework/Modules/module.private.modulemap %t/AddRemovePrivate.framework/Modules/module.private.modulemap 20*67e74705SXin Li// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.mcp -fdisable-module-hash -F %t %s -verify -DP 21*67e74705SXin Li// RUN: not diff %t.mcp/AddRemovePrivate.pcm %t/without.pcm 22*67e74705SXin Li 23*67e74705SXin Li// expected-no-diagnostics 24*67e74705SXin Li 25*67e74705SXin Li@import AddRemovePrivate; 26*67e74705SXin Li#ifdef P 27*67e74705SXin Li@import AddRemovePrivate.Private; 28*67e74705SXin Li#endif 29