Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
varargs2.C
blob: 13ddf5bb5279eb58b77c81c885a6cbe2017d9da8 [
file
] [
log
] [
blame
]
// { dg-do run }
int
c
;
struct
X
{
X
()
{};
X
(
const
X
&)
{
++
c
;
}
};
void
Foo
(
X
,
...)
{}
void
bin
(
X
&
p
)
{
Foo
(
p
,
p
);
}
int
main
()
{
X x
;
bin
(
x
);
if
(
c
!=
2
)
__builtin_abort
();
}