197292843SDaniel Jasper // RUN: rm -rf %t 29acb99e3SRichard Smith // 372bfb8e2SRichard Smith // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -fmodule-map-file=%S/Inputs/modular_maps/modulec.map -I %S/Inputs/modular_maps %s -verify 472bfb8e2SRichard Smith // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulec.map -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -I %S/Inputs/modular_maps %s -verify 59acb99e3SRichard Smith // 672bfb8e2SRichard Smith // RUN: cd %S 772bfb8e2SRichard Smith // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulea.map -fmodule-map-file=Inputs/modular_maps/modulec.map -I Inputs/modular_maps %s -verify 872bfb8e2SRichard Smith // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulec.map -fmodule-map-file=Inputs/modular_maps/modulea.map -I Inputs/modular_maps %s -verify 99acb99e3SRichard Smith // 109acb99e3SRichard Smith // RUN: cd %S 119acb99e3SRichard Smith // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulea-cwd.map -fmodule-map-file=Inputs/modular_maps/modulec-cwd.map -I Inputs/modular_maps %s -verify -fmodule-map-file-home-is-cwd 1272bfb8e2SRichard Smith // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=Inputs/modular_maps/modulec-cwd.map -fmodule-map-file=Inputs/modular_maps/modulea-cwd.map -I Inputs/modular_maps %s -verify -fmodule-map-file-home-is-cwd 1397292843SDaniel Jasper 1497da9178SDaniel Jasper #include "common.h" 1597292843SDaniel Jasper #include "a.h" 1697292843SDaniel Jasper #include "b.h" // expected-error {{private header}} 179887d79aSRichard Smith @import C; 189887d79aSRichard Smith const int v = a + c + x; 19*f7aeda1fSRichard Smith const int val = a + b + c + x; 20