gcc/testsuite/c-c++-common/vector-subscript-2.c
raw| 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; // { dg-warning "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } } |
| 11 | return a[0]; |
| 12 | } |