☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-decltype1.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/spaceship-decltype1.C
code
plain
raw
1
// PR c++/92560
2
// { dg-do compile { target c++20 } }
3
4
#include <compare>
5
6
struct X
7
{
8
friend std::strong_ordering operator<=>(X, X);
9
} x;
10
11
using T = decltype(x < x);