1// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify
3
4@import ElaboratedTypeStructs.Empty; // The structs are now hidden.
5struct S1 *x;
6struct S2 *y;
7struct S2 { int x; };
8struct S3 *z;
9// Incompatible definition.
10struct S3 { float y; }; // expected-error {{has incompatible definitions}} // expected-note {{field has name}}
11// expected-note@Inputs/elaborated-type-structs.h:3 {{field has name}}
12
13@import ElaboratedTypeStructs.Structs;
14
15void useS1(struct S1 *x);
16void useS2(struct S2 *x);
17void useS2(struct S2 *x);
18