summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/gdc261.d
blob: 593e5feff9c923ea7af0fcf8463ef66042d64a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// https://bugzilla.gdcproject.org/show_bug.cgi?id=261
// { dg-do compile }

void test261()
{
    class C1
    {
        void f1()
        {
            class C2
            {
                void f2()
                {
                    auto v = &f1;
                }
            }
        }
    }
}