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