1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail93.d(13): Error: variable i is shadowing variable fail93.main.i
5 ---
6 */
7 
8 // accepts-valid with DMD0.120. volatile as well as synchronized
9 
main()10 void main()
11 {
12     int i = 1;
13     synchronized int i = 2; // should fail to compile
14 }
15