d: Merge dmd, druntime d8e3976a58, phobos 7a6e95688
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail93.d
blob29893959b17d9587b2e4793760a80c46c14cf45e
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail93.d(14): Error: variable `i` is shadowing variable `fail93.main.i`
5 fail_compilation/fail93.d(13): declared here
6 ---
7 */
9 // accepts-valid with DMD0.120. volatile as well as synchronized
11 void main()
13 int i = 1;
14 synchronized int i = 2; // should fail to compile