Source

gdc / gdc.test / fail_compilation / fail93.d

Full commit
1
2
3
4
5
6
7
// accepts-valid with DMD0.120. volatile as well as synchronized

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