Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/spaceship-decltype1.C

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);