summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vector5.C
blob: e5304bcb12dec692ebfe3dcc3b4e2da3298cdb6d (plain)
1
2
3
4
5
6
7
8
// PR c++/30022
// { dg-do compile }

void foo()
{
  int __attribute__((vector_size(8))) v;
  v = 1/v;  // { dg-error "invalid operands of types" }
}