Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp2a/spaceship-synth8.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 // PR c++/94907 |
2 // { dg-do compile { target c++20 } } | |
3 | |
4 namespace std { struct strong_ordering { }; } | |
5 | |
6 struct E; | |
7 struct D { | |
8 virtual std::strong_ordering operator<=>(const struct E&) const = 0; | |
9 }; | |
10 struct E : D { | |
11 std::strong_ordering operator<=>(const E&) const override = default; | |
12 }; |