1*67e74705SXin Li// RUN: rm -rf %t 2*67e74705SXin Li// RUN: not %clang_cc1 -x objective-c -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/submodules %s 2>&1 | FileCheck %s 3*67e74705SXin Li 4*67e74705SXin Li// FIXME: cannot use -verify, because the error from inside the module build has 5*67e74705SXin Li// a different source manager than the verifier. 6*67e74705SXin Li 7*67e74705SXin Li@import missing_unavailable_headers; // OK 8*67e74705SXin Li@import missing_unavailable_headers.not_missing; // OK 9*67e74705SXin Li// CHECK-NOT: missing_unavailable_headers 10*67e74705SXin Li 11*67e74705SXin Li@import missing_headers; 12*67e74705SXin Li// CHECK: module.map:15:27: error: header 'missing.h' not found 13*67e74705SXin Li// CHECK: could not build module 'missing_headers' 14