aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/vector-subscript-2.c
blob: 84d55b91d20036521eb44d9d02750379a13cc9ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

/* Check that subscripting of vectors work with register storage class decls.  */

#define vector __attribute__((vector_size(16) ))


float vf(int i)
{
  register vector float a;
  return a[0];
}