summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/vector-subscript-2.c
blob: bfe01fc2740725d7bdd3f4f9379aadef4e774f2f (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;	// { dg-warning "ISO C\\+\\+1z does not allow 'register' storage class specifier" "" { target c++1z } }
  return a[0];
}