summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error23.C
blob: 959fe4075e6f8ebb500770db26e6400fb2c28def (plain)
1
2
3
4
5
// PR c++/34918
// { dg-do compile }

int v __attribute ((vector_size (8)));
bool b = !(v - v);	// { dg-error "could not convert .\\(__vector.2. int\\)\\{0, 0\\}. from .__vector.2. int. to .bool.|in argument to unary" }