Debian Codegraph @

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

raw
1 // Test that we suggest adding #include <compare>.
2 // { dg-do compile { target c++20 } }
3
4 auto x = 1<=>2; // { dg-error "" }
5 // { dg-message "<compare>" "" { target *-*-* } .-1 }