1f08c3bdfSopenharmony_cistatic void ok_top(void) 2f08c3bdfSopenharmony_ci{ 3f08c3bdfSopenharmony_ci __label__ l; 4f08c3bdfSopenharmony_cil: 5f08c3bdfSopenharmony_ci goto l; 6f08c3bdfSopenharmony_ci} 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_cistatic void ko_undecl(void) 9f08c3bdfSopenharmony_ci{ 10f08c3bdfSopenharmony_ci __label__ l; 11f08c3bdfSopenharmony_ci goto l; // KO: undeclared 12f08c3bdfSopenharmony_ci} 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_cistatic void ok_local(void) 15f08c3bdfSopenharmony_ci{ 16f08c3bdfSopenharmony_cil: 17f08c3bdfSopenharmony_ci { 18f08c3bdfSopenharmony_ci __label__ l; 19f08c3bdfSopenharmony_cil: 20f08c3bdfSopenharmony_ci goto l; 21f08c3bdfSopenharmony_ci } 22f08c3bdfSopenharmony_cigoto l; 23f08c3bdfSopenharmony_ci} 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_cistatic void ko_scope(void) 26f08c3bdfSopenharmony_ci{ 27f08c3bdfSopenharmony_ci { 28f08c3bdfSopenharmony_ci __label__ l; 29f08c3bdfSopenharmony_cil: 30f08c3bdfSopenharmony_ci goto l; 31f08c3bdfSopenharmony_ci } 32f08c3bdfSopenharmony_cigoto l; // KO: undeclared 33f08c3bdfSopenharmony_ci} 34f08c3bdfSopenharmony_ci 35f08c3bdfSopenharmony_ci/* 36f08c3bdfSopenharmony_ci * check-name: label-scope1 37f08c3bdfSopenharmony_ci * 38f08c3bdfSopenharmony_ci * check-error-start 39f08c3bdfSopenharmony_cilabel-scope1.c:11:9: error: label 'l' was not declared 40f08c3bdfSopenharmony_cilabel-scope1.c:32:1: error: label 'l' was not declared 41f08c3bdfSopenharmony_ci * check-error-end 42f08c3bdfSopenharmony_ci */ 43