Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-rewrite5.C
blob: d0424377e8e3ac560de7ac7f7cccd2230c6cdf7b [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
typename
T
>
struct
A
{
A
()
{}
template
<
typename
U
>
A
(
const
A
<
U
>&)
{}
bool
operator
==(
const
A
&)
const
{
return
true
;
}
};
A
<
const
int
>
a
;
A
<int>
b
;
auto
c
=
(
a
==
b
);