aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr25559.c
blob: 7879a1558b64b7c2b707a5c25b5fbea2ebd0f041 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/25559 */
/* { dg-do compile } */

#define vs(n) __attribute__((vector_size (n)))
int vs (-1) a;			/* { dg-warning "attribute ignored" } */
int vs (0) b;			/* { dg-error "zero vector size" } */
int vs (1) c;			/* { dg-error "multiple of component size" } */
int vs (sizeof (int) / 2) d;	/* { dg-error "multiple of component size" } */
int vs (sizeof (int)) e;
int vs (sizeof (int) * 2) f;