aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/gdc37.d
blob: 171ace527a0bccde1fd6b9b685edafe11f28a8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// https://bugzilla.gdcproject.org/show_bug.cgi?id=37
// { dg-do compile }

struct S37
{
    int bar(const S37 s)
    {
        return 0;
    }
}

int test37()
{
    S37 s;
    return s.bar(s);
}