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

auto iota(int, int)
{
    struct Result
    {
        this(int)
        {
        }
    }
    return Result();
}

auto iota(int end)
{
    int begin;
    return iota(begin, end);
}