rt_gccstream/gcc/testsuite/gcc.dg/vector-1.c

16 lines
243 B
C

/* { 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;
}