]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.dg/simd17237.d
libstdc++: Preserve signbit of nan when converting float to double [PR113578]
[thirdparty/gcc.git] / gcc / testsuite / gdc.dg / simd17237.d
CommitLineData
f0a3bab4
IB
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 } } }
4import core.simd;
5
6struct S17237
7{
8 bool a;
9 struct
10 {
11 bool b;
12 int8 c;
13 }
14}
15
16static assert(S17237.a.offsetof == 0);
17static assert(S17237.b.offsetof == 32);
18static assert(S17237.c.offsetof == 64);