Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=20367
2
3 struct A
4 {
5 int x;
6 this(ref return scope A rhs) {}
7 @disable this(this) {}
8 }
9
10 void main()
11 {
12 A a;
13 A b = a; // copy constructor gets called
14 }