Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp2a/spaceship-eq4.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 // { dg-do compile { target c++2a } } |
2 | |
3 struct A { | |
4 int operator==(const A&) const = default; // { dg-error "return .bool" } | |
5 bool operator==(const A&, const A&) const = default; // { dg-error "exactly one" } | |
6 bool operator==(int) const = default; // { dg-error "parameter type" } | |
7 bool operator==(const A&) = default; // { dg-error "const" } | |
8 }; |