(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
fail_compilation/
fail285.d
/*
TEST_OUTPUT:
---
fail_compilation/fail285.d(19): Error: with symbol `fail285.S.x` is shadowing local symbol `fail285.main.x`
---
*/

struct S
{
    int x;
}

void main()
{
    int x;
    S s;
    with (s)
    {
        x++;
    }
}