2011-09-16 04:54:06 +08:00
|
|
|
// RUN: rm -rf %t
|
2012-01-04 03:32:59 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -F %S/Inputs %s 2>&1 | FileCheck %s
|
|
|
|
// FIXME: When we have a syntax for modules in C, use that.
|
2012-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_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-03-02 06:07:04 +08:00
|
|
|
// CHECK: MutuallyRecursive2.h:3:32: fatal error: cyclic dependency in module 'MutuallyRecursive1': MutuallyRecursive1 -> MutuallyRecursive2 -> MutuallyRecursive1
|
2012-12-01 02:38:50 +08:00
|
|
|
// CHECK: While building module 'MutuallyRecursive1' imported from
|
2012-03-02 06:07:04 +08:00
|
|
|
// CHECK: MutuallyRecursive1.h:2:32: fatal error: could not build module 'MutuallyRecursive2'
|
|
|
|
// CHECK: cycles.c:4:32: fatal error: could not build module 'MutuallyRecursive1'
|
2012-12-01 02:38:50 +08:00
|
|
|
// CHECK-NOT: error:
|
2011-09-16 04:54:06 +08:00
|
|
|
|