xref: /aosp_15_r20/external/clang/test/Parser/struct-recursion.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 %s -fsyntax-only
2*67e74705SXin Li 
3*67e74705SXin Li // C99 6.7.2.3p11
4*67e74705SXin Li 
5*67e74705SXin Li // mutually recursive structs
6*67e74705SXin Li struct s1 { struct s2 *A; };
7*67e74705SXin Li struct s2 { struct s1 *B; };
8*67e74705SXin Li 
9*67e74705SXin Li // both types are complete now.
10*67e74705SXin Li struct s1 a;
11*67e74705SXin Li struct s2 b;
12