blob: df2a0a785df5edca3d82707d850c70e2b602fa33 [file] [log] [blame]
Douglas Gregor1f87cf42011-09-15 20:54:06 +00001// RUN: rm -rf %t
Douglas Gregorc13a34b2012-01-03 19:32:59 +00002// RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -F %S/Inputs %s 2>&1 | FileCheck %s
3// FIXME: When we have a syntax for modules in C, use that.
4@import MutuallyRecursive1;
Douglas Gregor1f87cf42011-09-15 20:54:06 +00005
6// FIXME: Lots of redundant diagnostics here, because the preprocessor
7// can't currently tell the parser not to try to load the module again.
8
Douglas Gregorc13a34b2012-01-03 19:32:59 +00009// CHECK: MutuallyRecursive2.h:3:9: fatal error: cyclic dependency in module 'MutuallyRecursive1': MutuallyRecursive1 -> MutuallyRecursive2 -> MutuallyRecursive1
10// CHECK: MutuallyRecursive1.h:2:9: fatal error: could not build module 'MutuallyRecursive2'
11// CHECK: cycles.c:4:9: fatal error: could not build module 'MutuallyRecursive1'
Douglas Gregor1f87cf42011-09-15 20:54:06 +000012