Sign in
gnu
/
gcc
/
e8cbc2e256b3e9568288594d9f90a2015d31b55a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
byval.C
blob: bd17797a1815cd5f944e53f9423111012881f2dd [
file
] [
log
] [
blame
]
// Bug: a is destroyed in both foo() and main()
int
count
;
struct
A
{
double
a
,
b
;
A
(
int
)
{
count
++;
}
A
(
const
A
&)
{
count
++;
}
~
A
()
{
count
--;
}
};
void
foo
(
A a
)
{
}
int
main
()
{
foo
(
1
);
return
count
;
}