summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test22997.d
blob: 3cad527b4c2ed9441d23c604e1cc6def96a452fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// https://issues.dlang.org/show_bug.cgi?id=22997

struct Forward {}

struct Foo
{
    this(ref typeof(this) rhs)
    {
        this(rhs, Forward.init);
    }

    this(ref typeof(this) rhs, Forward) {}
    this(typeof(this) rhs, int i, double d, string s) {}
}