☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test20367.d
☽
☼
gcc/testsuite/gdc.test/compilable/test20367.d
code
plain
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
}