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

alias TypeTuple(T...) = T;

void test15123()
{
    alias Vector16s = TypeTuple!(
        void16,  byte16,  short8,  int4,  long2,
                ubyte16, ushort8, uint4, ulong2, float4, double2);
    foreach (V; Vector16s)
    {
        auto x = V.init;
    }
}