comparison gcc/testsuite/gdc.dg/pr92309.d @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92309
2 // { dg-do run { target hw } }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5 union U
6 {
7 struct
8 {
9 size_t a;
10 size_t b;
11 union
12 {
13 size_t c;
14 size_t d;
15 }
16 }
17 }
18
19 void main()
20 {
21 U u;
22 assert(u.a == 0);
23 u.d = 1;
24 assert(u.a == 0);
25 }