gcc/testsuite/gfortran.dg/g77/check0.f
raw| 1 | c { dg-do compile } |
| 2 | c { dg-options "-std=legacy" } |
| 3 | c |
| 4 | CCC Abort fixed by: |
| 5 | CCC1998-04-21 Jim Wilson <[email protected]> |
| 6 | CCC |
| 7 | CCC * stmt.c (check_seenlabel): When search for line number note for |
| 8 | CCC warning, handle case where there is no such note. |
| 9 | logical l(10) |
| 10 | integer i(10) |
| 11 | goto (10,20),l ! { dg-error "Selection expression in computed GOTO" } |
| 12 | goto (10,20),i ! { dg-error "Selection expression in computed GOTO" } |
| 13 | 10 stop |
| 14 | 20 end |