Source

gdc / gdc.test / fail_compilation / failinout1.d

Full commit
1
2
3
4
5
inout(int) foo(inout(int) x)
{
    x = 5;  // cannot modify inout
    return 0;
}