modula2: M2MetaError.{def,mod} and P2SymBuild.mod further cleanup
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-tag-2.c
blob444605a93c6ef9a2c5a333a7d6a29f79820572e1
1 /* { dg-do compile }
2 * { dg-options "-std=c23" }
3 */
5 // compatibility of structs in assignment
7 typedef struct p { int a; } pd_t;
9 void test1(void)
11 pd_t y0;
12 struct p { int a; } x;
13 y0 = x;
16 void test2(void)
18 struct p { int a; } x;
19 struct p y0 = x;
22 void test3(void)
24 struct p { int a; } x;
25 pd_t y0 = x;
28 typedef struct p { int a; } p2_t;
30 void test4(void)
32 p2_t x;
33 pd_t y0 = x;
36 void test5(void)
38 struct q { int a; } a;
39 struct q { int a; } b;
40 a = b;