libbacktrace: use __has_attribute for fallthrough
[official-gcc.git] / gcc / testsuite / g++.dg / cpp / spaceship-1.C
blob241b277c05bb0b8c6efdbde08390222318c95f70
1 // { dg-do compile { target c++17_down } }
2 // { dg-options "-Wno-pointer-arith" }
4 struct X {};
5 bool operator<= (X, X);
6 template<bool (X, X)> struct Y {};
7 Y<&operator<=> y;
8 bool foo (bool (*fn) (X, X), int n) { return n+&operator<=> fn; }