Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb121.C
blob: 036c8d5152afa22307cc3ac1f87bf6476197612f [
file
] [
log
] [
blame
]
// { dg-do assemble }
class
A
{
private
:
int
i1_
;
public
:
void
f
(
int
const
i1
=
1
);
// { dg-message "previous specification" }
};
void
A
::
f
(
int
const
i1
=
1
)
// { dg-error "default argument given" }
{
i1_
=
i1
;
}
int
main
()
{
A a
;
a
.
f
();
return
0
;
}