blob: 48d4feb7cfe884f2e5889d670c36f5ec76d50e32 [file] [log] [blame]
Richard Smith65ebb4a2015-03-26 04:09:53 +00001// 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
7A 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
13A post_a;