Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test1547.d
blob: 30c6564946fdc0a863bd34c97043f5788f85a56d [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=1547
struct
A
{
int
b
;
static
A opCall
(
int
k
)
{
A a
;
a
.
b
=
k
;
return
a
;
}
}
void
fun
(
A k
=
2
)
{}
void
main
()
{
A a
=
7
;
fun
();
}