blob: 74ab0087a0e7e7c4566ea892678c1ddb7956dec5 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=19788
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-do compile { target { avx_runtime || vect_sizes_16B_8B } } }
// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
void test19788()
{
enum v = __vector(float[4]).init;
const(float)[] a = v[];
// { dg-error "'__vector\\\(float\\\[4\\\]\\\)' cannot be sliced with '\\\[\\\]'" "" { target *-*-* } .-1 }
}