Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test6999.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=6999: inout in front of return type
2
3 struct A
4 {
5 inout:
6 inout(int) foo()
7 {
8 return 0;
9 }
10 }
11
12 struct B
13 {
14 inout
15 {
16 inout(int) foo()
17 {
18 return 0;
19 }
20 }
21 }
22
23 struct C
24 {
25 inout inout(int) foo()
26 {
27 return 0;
28 }
29 }