1 /* { dg-do compile } */ 2 /* { dg-options "-fgimple" } */ 3 __GIMPLE()4__GIMPLE() void fn1() 5 { 6 if (1) 7 goto 8 else /* { dg-error "expected label" } */ 9 goto lbl; 10 } 11 __GIMPLE()12__GIMPLE() void fn2() 13 { 14 if (1) 15 goto lbl; 16 else 17 goto ; /* { dg-error "expected label" } */ 18 } 19 __GIMPLE()20__GIMPLE() void fn3() 21 { 22 if (1) 23 goto lbl; 24 else 25 goto 26 } /* { dg-error "expected label" } */ 27 28