Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr25559.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR c/25559 */ |
2 /* { dg-do compile } */ | |
3 | |
4 #define vs(n) __attribute__((vector_size (n))) | |
145 | 5 int vs (-1) a; /* { dg-error ".vector_size. attribute argument value '-1' is negative" } */ |
111 | 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; |