Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
explicit1.C
blob: b8284abaa684f7760c8c69466357efcafc1655b6 [
file
] [
log
] [
blame
]
// { dg-do assemble }
struct
A1
{
explicit
A1
(
int
)
{
}
}
a1
(
1
);
struct
A
{
explicit
A
(
int
);
}
a
(
1
);
A
::
A
(
int
)
{
}
void
foo
(
A a
)
{
foo
(
a
);
foo
(
1
);
// { dg-error "" } not allowed
}