☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
test22209.d
☽
☼
gcc/testsuite/gdc.test/runnable/test22209.d
code
plain
raw
1
// https://issues.dlang.org/show_bug.cgi?id=22209
2
3
struct U { size_t[4] a; }
4
5
struct S
6
{
7
int x;
8
U u;
9
alias u this;
10
}
11
12
U foo()
13
{
14
S s = S(42, U([1, 2, 3, 4]));
15
return s;
16
}
17
18
void main()
19
{
20
assert(foo().a[0] == 1);
21
}