| 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. |
| 5 |
struct S1 *x; |
| 6 |
struct S2 *y; |
| 7 |
struct S2 { int x; }; |
| 8 |
struct S3 *z; |
| 9 |
// Incompatible definition. |
| 10 |
struct 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 |
|
| 15 |
void useS1(struct S1 *x); |
| 16 |
void useS2(struct S2 *x); |
| 17 |
void useS2(struct S2 *x); |