1*67e74705SXin Li // RUN: rm -rf %t 2*67e74705SXin Li // RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -F %S/Inputs %s 2>&1 | FileCheck %s 3*67e74705SXin Li // FIXME: When we have a syntax for modules in C, use that. 4*67e74705SXin Li @import MutuallyRecursive1; 5*67e74705SXin Li 6*67e74705SXin Li // CHECK: While building module 'MutuallyRecursive1' imported from 7*67e74705SXin Li // CHECK: While building module 'MutuallyRecursive2' imported from 8*67e74705SXin Li // CHECK: MutuallyRecursive2.h:3:9: fatal error: cyclic dependency in module 'MutuallyRecursive1': MutuallyRecursive1 -> MutuallyRecursive2 -> MutuallyRecursive1 9*67e74705SXin Li // CHECK: MutuallyRecursive1.h:2:9: fatal error: could not build module 'MutuallyRecursive2' 10*67e74705SXin Li // CHECK: cycles.c:4:9: fatal error: could not build module 'MutuallyRecursive1' 11*67e74705SXin Li // CHECK: 3 errors generated 12*67e74705SXin Li 13*67e74705SXin Li 14