1*67e74705SXin Li// RUN: rm -rf %t 2*67e74705SXin Li// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ 3*67e74705SXin Li// RUN: -I %S/Inputs/submodules %s 2>&1 | FileCheck %s 4*67e74705SXin Li// CHECK: import of module 'import_self.c' appears within same top-level module 'import_self' 5*67e74705SXin Li 6*67e74705SXin Li// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ 7*67e74705SXin Li// RUN: -I %S/Inputs/submodules -fmodule-name=import_self %s \ 8*67e74705SXin Li// RUN: 2>&1 | FileCheck -check-prefix=CHECK-fmodule-name %s 9*67e74705SXin Li// CHECK-fmodule-name: @import of module 'import_self.b' in implementation of 'import_self' 10*67e74705SXin Li 11*67e74705SXin Li@import import_self.b; 12