Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc %s -fsyntax-only |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 2 | |
3 | // C99 6.7.2.3p11 | ||||
4 | |||||
5 | // mutually recursive structs | ||||
6 | struct s1 { struct s2 *A; }; | ||||
7 | struct s2 { struct s1 *B; }; | ||||
8 | |||||
9 | // both types are complete now. | ||||
10 | struct s1 a; | ||||
11 | struct s2 b; |