Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr25559.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 /* PR c/25559 */ |
2 /* { dg-do compile } */ | |
3 | |
4 #define vs(n) __attribute__((vector_size (n))) | |
5 int vs (-1) a; /* { dg-warning "attribute ignored" } */ | |
6 int vs (0) b; /* { dg-error "zero vector size" } */ | |
7 int vs (1) c; /* { dg-error "multiple of component size" } */ | |
8 int vs (sizeof (int) / 2) d; /* { dg-error "multiple of component size" } */ | |
9 int vs (sizeof (int)) e; | |
10 int vs (sizeof (int) * 2) f; |