comparison gcc/testsuite/gdc.test/fail_compilation/staticforeach1.d @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/staticforeach1.d(10): Error: must use labeled `break` within `static foreach`
5 ---
6 */
7 void main(){
8 for(;;){
9 static foreach(i;0..1){
10 break;
11 }
12 }
13 }