summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vector-1.c
blob: 288dd1e924c1e9c49e6e982ab94bcb9203c7b92b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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;
}