(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
fail_compilation/
fail93.d
/*
TEST_OUTPUT:
---
fail_compilation/fail93.d(13): Error: variable `i` is shadowing variable `fail93.main.i`
---
*/

// accepts-valid with DMD0.120. volatile as well as synchronized

void main()
{
    int i = 1;
    synchronized int i = 2; // should fail to compile
}