aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test22228.d
blob: ef31b4badcae692f81a8a965549a6602d08ae581 (plain)
1
2
3
4
5
6
7
8
9
10
11
// https://issues.dlang.org/show_bug.cgi?id=22228
// Note: fixed by reverting pull #11545

auto f()
{   immutable int i;
    auto p = (() => &i)();

    return 0;
}

enum ctfeInvocation = f;