aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test21719.d
blob: 9d444e16c785d7f2962cf3d34afd9608e1bf90ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// https://issues.dlang.org/show_bug.cgi?id=21719

struct S
{
    auto f()
    {
    } // inferred to be @safe @nogc pure nothrow
}

class C
{
    auto f() // should also infer the same attributes
    {
    }
}

pure @nogc nothrow @safe void test(S s, C c)
{
    s.f;
    c.f;
}