blob: c18b7b674abaa106ef74478fe0f63273d8ba7db9 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-w" } */
#define vector __attribute__((vector_size(16) ))
/* Check that vector[index] works and index[vector] is rejected. */
float vf(vector float a)
{
return 0[a]; /* { dg-error "subscripted value is neither array nor pointer nor vector|invalid types .* for array subscript" } */
}
float fv(vector float a)
{
return a[0];
}