summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr29736.c
blob: 54eb9aaaa788c0dc58c8c76c9edce079c21eb42f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/29736 */

int __attribute__ ((vector_size (8), vector_size (8))) v; /* { dg-error "invalid vector type" } */

extern int __attribute__ ((vector_size (8))) w;
int __attribute__ ((vector_size (8))) w;

void
foo ()
{
  v = v + v;
  w = w + w;
}