Richard Smith | 04765ae | 2015-05-21 01:20:10 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fno-modules-error-recovery -fmodules-local-submodule-visibility -fmodules-cache-path=%t -I%S/Inputs/submodule-visibility -verify %s |
Richard Smith | 04765ae | 2015-05-21 01:20:10 +0000 | [diff] [blame] | 3 | |
| 4 | #include "cycle1.h" |
| 5 | C1 c1; |
Richard Smith | 97135cc | 2015-11-12 22:19:45 +0000 | [diff] [blame] | 6 | C2 c2; // expected-error {{must be imported}} |
Richard Smith | 04765ae | 2015-05-21 01:20:10 +0000 | [diff] [blame] | 7 | // expected-note@cycle2.h:6 {{here}} |
| 8 | |
| 9 | #include "cycle2.h" |
| 10 | C2 c3; |