diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/error23.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/error23.C | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/error23.C b/gcc/testsuite/g++.dg/other/error23.C new file mode 100644 index 000000000..959fe4075 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/error23.C @@ -0,0 +1,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" } |