gcc/testsuite/g++.dg/cpp0x/spaceship-eq1.C
raw| 1 | // PR c++/92973 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | struct S { bool operator==(const S&) const = default; int s; }; // { dg-error "only available with" "" { target c++17_down } } |
| 5 | struct T { bool operator!=(const T&) const = default; int t; }; // { dg-error "only available with" "" { target c++17_down } } |