Home | History | Annotate | Download | only in Modules
      1 // RUN: rm -rf %t
      2 // RUN: %clang_cc1 -fmodules -x objective-c -fmodules-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;
      5 
      6 // CHECK: While building module 'MutuallyRecursive1' imported from
      7 // CHECK: While building module 'MutuallyRecursive2' imported from
      8 // CHECK: MutuallyRecursive2.h:3:9: fatal error: cyclic dependency in module 'MutuallyRecursive1': MutuallyRecursive1 -> MutuallyRecursive2 -> MutuallyRecursive1
      9 // CHECK: While building module 'MutuallyRecursive1' imported from
     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'
     12 // CHECK-NOT: error:
     13 
     14