blob: 8e3e9c6316175d888feea6951895cff6aebb7e05 [file] [log] [blame]
Douglas Gregor1f87cf42011-09-15 20:54:06 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodule-cache-path %t -F %S/Inputs %s 2>&1 | FileCheck %s
3
4__import_module__ MutuallyRecursive1;
5
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
9// CHECK: MutuallyRecursive2.h:3:19: fatal error: cyclic dependency in module 'MutuallyRecursive1': MutuallyRecursive1 -> MutuallyRecursive2 -> MutuallyRecursive1
10// CHECK: MutuallyRecursive1.h:2:19: fatal error: could not build module 'MutuallyRecursive2'
11// CHECK: cycles.c:4:19: fatal error: could not build module 'MutuallyRecursive1'
12