gcc/testsuite/gfortran.dg/g77/pr105203.f
raw| 1 | C Test case for PR debug/105203 |
| 2 | C Origin: [email protected] |
| 3 | C |
| 4 | C { dg-do compile } |
| 5 | C { dg-options "-O2 -fcompare-debug -ftracer -w" } |
| 6 | C { dg-additional-options "-fPIC" { target fpic } } |
| 7 | SUBROUTINE FOO (B) |
| 8 | |
| 9 | 10 CALL BAR (A) |
| 10 | ASSIGN 20 TO M |
| 11 | IF (100.LT.A) GOTO 10 |
| 12 | GOTO 40 |
| 13 | C |
| 14 | 20 IF (B.LT.ABS(A)) GOTO 10 |
| 15 | ASSIGN 30 TO M |
| 16 | GOTO 40 |
| 17 | C |
| 18 | 30 ASSIGN 10 TO M |
| 19 | 40 GOTO M,(10,20,30) |
| 20 | END |