]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/c-c++-common/vector-subscript-2.c
invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z...
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / vector-subscript-2.c
CommitLineData
30cd1c5d
AS
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
8float vf(int i)
9{
7b936140 10 register vector float a; // { dg-warning "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } }
30cd1c5d
AS
11 return a[0];
12}