repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test1547.d
blob
30c6564946fdc0a863bd34c97043f5788f85a56d
1
// https://issues.dlang.org/show_bug.cgi?id=1547
2
3
struct
A
4
{
5
int
b
;
6
static
A
opCall
(
int
k
)
7
{
8
A a
;
9
a
.
b
=
k
;
10
return
a
;
11
}
12
}
13
14
void
fun
(
A k
=
2
) {}
15
16
void
main
()
17
{
18
A a
=
7
;
19
fun
();
20
}