comparison gcc/testsuite/g++.dg/cpp2a/spaceship-eq9.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 // PR c++/94462
2 // { dg-do compile { target c++20 } }
3
4 namespace std {
5 struct strong_ordering { };
6 }
7
8 namespace Synth {
9 struct B {
10 friend std::strong_ordering operator<=>(B, B) = default;
11 };
12
13 struct C {
14 friend bool operator==(C, C);
15 };
16 }
17