]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp2a/spaceship-err2.C
Implement C++20 operator<=>.
[gcc.git] / gcc / testsuite / g++.dg / cpp2a / spaceship-err2.C
1 // { dg-do compile { target c++2a } }
2
3 #include <compare>
4 template <class T, T x = (T() <=> T())> // { dg-error "31:0 <=> 0" }
5 void f(T);
6 //constexpr int f(...) { return 42; }
7 constexpr int i = f(24); // { dg-error "no match" }
This page took 0.038447 seconds and 5 git commands to generate.