☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test22226.d
☽
☼
gcc/testsuite/gdc.test/compilable/test22226.d
code
plain
raw
1
// https://issues.dlang.org/show_bug.cgi?id=22226
2
3
struct A {}
4
5
A move(A a) { return A.init; }
6
7
struct SumType
8
{
9
A a;
10
11
this(A value)
12
{
13
a = __ctfe ? value : move(value);
14
}
15
}