summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/simd17237.d
blob: a98323570944a6be77de83e8e4664daa1fc3afed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// https://issues.dlang.org/show_bug.cgi?id=17237
// { dg-additional-options "-mavx2" { target avx2_runtime } }
// { dg-do compile { target { avx2_runtime || vect_sizes_32B_16B } } }
import core.simd;

struct S17237
{
    bool a;
    struct
    {
        bool b;
        int8 c;
    }
}

static assert(S17237.a.offsetof == 0);
static assert(S17237.b.offsetof == 32);
static assert(S17237.c.offsetof == 64);