view gcc/testsuite/c-c++-common/vector-1.c @ 16:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "" } */

/* Check for application of ~ on vector types.  */

#define vector __attribute__((vector_size(16) ))

vector float a;
vector int a1;

int f(void)
{
 a =  ~a; /* { dg-error "" } */
 a1 =  ~a1;
}