Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-rewrite2.C
blob: 4f3d12757ffa460e3331b8fa47dfecfe87091a53 [
file
] [
log
] [
blame
]
// Test that C++20 overload changes don't break sloppy code.
struct
C
{
bool
operator
==(
const
C
&);
bool
operator
!=(
const
C
&);
};
int
main
()
{
C c1
,
c2
;
(
void
)(
c1
==
c2
);
(
void
)(
c1
!=
c2
);
}