]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gcc.dg/vector-subscript-2.c
c-typeck.c (build_array_ref): Handle subscripting of vectors.
[gcc.git] / gcc / testsuite / gcc.dg / vector-subscript-2.c
1 /* { dg-do compile } */
2
3 /* Check that subscripting of vectors work with register storage class decls. */
4
5 #define vector __attribute__((vector_size(16) ))
6
7
8 float vf(int i)
9 {
10 register vector float a;
11 return a[0];
12 }
13
This page took 0.034427 seconds and 5 git commands to generate.