1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2 // expected-no-diagnostics
3
4 struct simple { int i; };
5
6 void f(void) {
7 struct simple s[1];
8 s->i = 1;
9 }
10
11 typedef int x;
12 struct S {
13 int x;
14 x z;
15 };
16
17 void g(void) {
18 struct S s[1];
19 s->x = 1;
20 s->z = 2;
21 }
22