aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test12523.d
blob: 8a8eae15097aadbb1ae1bdb76162934b4edb1959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
void test12523(inout(int))
{
    void check(T)()
    {
        T[] a;
        foreach (ref e; a)
            static assert(is(typeof(e) == T));
    }

    check!(int)();
    check!(inout(int))();
    check!(inout(const(int)))();
    check!(const(int))();
    check!(immutable(int))();
}