view gcc/testsuite/c-c++-common/vector-subscript-2.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } }
  return a[0];
}