blob: b810ccf15b72d0a969bcdf013835b8086b3e4ec5 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc %s -verify -fsyntax-only
Steve Naroff3cc4af82007-12-16 21:42:28 +00002
3struct simple { int i; };
4
5void f(void) {
6 struct simple s[1];
7 s->i = 1;
8}
9
Douglas Gregor72de6672009-01-08 20:45:30 +000010typedef int x;
11struct S {
12 int x;
13 x z;
14};
15
16void g(void) {
17 struct S s[1];
18 s->x = 1;
19 s->z = 2;
20}