On Thu, Nov 07, 2019 at 05:05:16PM +0000, Jason Merrill wrote: > --- /dev/null > +++ b/gcc/testsuite/g++.dg/cpp2a/spaceship-scalar1-neg.C > @@ -0,0 +1,25 @@ > +// { dg-do run { target c++2a } } > + > +#include <compare> > + > +#define assert(X) do { if (!(X)) __builtin_abort(); } while(0) > + > +void f(){} > +void g(){} > + > +int main() > +{ > + { > + const auto v = &f <=> &g; // { dg-error "invalid operands" } ...
I've noticed this test being UNRESOLVED (the execution part of it, because we expect errors during compilation). Fixed thusly, tested on x86_64-linux, committed to trunk as obvious: 2019-11-08 Jakub Jelinek <ja...@redhat.com> * g++.dg/cpp2a/spaceship-scalar1-neg.C: Change dg-do from run to compile. --- gcc/testsuite/g++.dg/cpp2a/spaceship-scalar1-neg.C (revision 277932) +++ gcc/testsuite/g++.dg/cpp2a/spaceship-scalar1-neg.C (working copy) @@ -1,4 +1,4 @@ -// { dg-do run { target c++2a } } +// { dg-do compile { target c++2a } } #include <compare> Jakub