* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / c-c++-common / vector-subscript-2.c
blobb81195fdedfd1ae18af9a87e407a616b203f41c9
1 /* { dg-do compile } */
3 /* Check that subscripting of vectors work with register storage class decls. */
5 #define vector __attribute__((vector_size(16) ))
8 float vf(int i)
10 register vector float a; // { dg-warning "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } }
11 return a[0];