Richard Smith | 65ebb4a | 2015-03-26 04:09:53 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -x c++ -fmodules-cache-path=%t -fmodules -I %S/Inputs/submodules-merge-defs %s -verify -fno-modules-error-recovery |
| 3 | |
| 4 | // Trigger import of definitions, but don't make them visible. |
| 5 | #include "empty.h" |
| 6 | |
| 7 | A pre_a; // expected-error {{must be imported}} expected-error {{must use 'struct'}} |
| 8 | // expected-note@defs.h:1 {{here}} |
| 9 | |
| 10 | // Make definitions from second module visible. |
| 11 | #include "import-and-redefine.h" |
| 12 | |
| 13 | A post_a; |