]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/test22226.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test22226.d
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 }