2011-09-16 04:54:06 +08:00
|
|
|
// RUN: rm -rf %t
|
2013-02-08 03:01:24 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -F %S/Inputs %s 2>&1 | FileCheck %s
|
2012-01-04 03:32:59 +08:00
|
|
|
// FIXME: When we have a syntax for modules in C, use that.
|
2012-12-12 06:11:52 +08:00
|
|
|
@import MutuallyRecursive1;
|
2011-09-16 04:54:06 +08:00
|
|
|
|
2012-12-01 02:38:50 +08:00
|
|
|
// CHECK: While building module 'MutuallyRecursive1' imported from
|
|
|
|
// CHECK: While building module 'MutuallyRecursive2' imported from
|
2012-12-12 06:11:52 +08:00
|
|
|
// CHECK: MutuallyRecursive2.h:3:9: fatal error: cyclic dependency in module 'MutuallyRecursive1': MutuallyRecursive1 -> MutuallyRecursive2 -> MutuallyRecursive1
|
|
|
|
// CHECK: MutuallyRecursive1.h:2:9: fatal error: could not build module 'MutuallyRecursive2'
|
|
|
|
// CHECK: cycles.c:4:9: fatal error: could not build module 'MutuallyRecursive1'
|
2013-05-04 06:58:43 +08:00
|
|
|
// CHECK: 3 errors generated
|
|
|
|
|
2011-09-16 04:54:06 +08:00
|
|
|
|