summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/spaceship-eq1.C
blob: 2e0ad0c53f7a016139f7c3c8395764d2b56f3a23 (plain)
1
2
3
4
5
// PR c++/92973
// { dg-do compile { target c++11 } }

struct S { bool operator==(const S&) const = default; int s; };	// { dg-error "only available with" "" { target c++17_down } }
struct T { bool operator!=(const T&) const = default; int t; };	// { dg-error "only available with" "" { target c++17_down } }