Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only |
2 | |||||
3 | struct simple { int i; }; | ||||
4 | |||||
5 | void f(void) { | ||||
6 | struct simple s[1]; | ||||
7 | s->i = 1; | ||||
8 | } | ||||
9 | |||||
10 | typedef int x; | ||||
11 | struct S { | ||||
12 | int x; | ||||
13 | x z; | ||||
14 | }; | ||||
15 | |||||
16 | void g(void) { | ||||
17 | struct S s[1]; | ||||
18 | s->x = 1; | ||||
19 | s->z = 2; | ||||
20 | } |