Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / vector-subscript-1.c
blobc18b7b674abaa106ef74478fe0f63273d8ba7db9
1 /* { dg-do compile } */
2 /* { dg-options "-w" } */
4 #define vector __attribute__((vector_size(16) ))
5 /* Check that vector[index] works and index[vector] is rejected. */
7 float vf(vector float a)
9 return 0[a]; /* { dg-error "subscripted value is neither array nor pointer nor vector|invalid types .* for array subscript" } */
13 float fv(vector float a)
15 return a[0];