Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p5469.C
blob: 8c82c7e3dac4fb8a20d9916de1287d1b0fc581f7 [
file
] [
log
] [
blame
]
// { dg-do run }
// prms-id: 5469
int
count
;
class
A
{
A
();
A
(
const
A
&);
public
:
A
(
int
)
{
++
count
;
}
~
A
()
{
--
count
;
}
int
operator
==
(
const
A
&
r
)
{
return
0
;
}
};
int
main
()
{
{
A a
(
1
);
if
(
a
==
2
&&
a
==
1
)
;
}
return
count
;
}