Debian Codegraph @

gcc/testsuite/gdc.dg/simd17237.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=17237
2 // { dg-additional-options "-mavx2" { target avx2_runtime } }
3 // { dg-do compile { target { avx2_runtime || vect_sizes_32B_16B } } }
4 import core.simd;
5
6 struct S17237
7 {
8 bool a;
9 struct
10 {
11 bool b;
12 int8 c;
13 }
14 }
15
16 static assert(S17237.a.offsetof == 0);
17 static assert(S17237.b.offsetof == 32);
18 static assert(S17237.c.offsetof == 64);