URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [goto_5.f90] - Rev 858
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }! PR 38507! Verify that we correctly flag invalid gotos, while not flagging valid gotos.integer i,jdo i=1,10goto 2020 end do ! { dg-warning "is not in the same block" }goto 20 ! { dg-warning "is not in the same block" }goto 25 ! { dg-warning "is not in the same block" }goto 40 ! { dg-warning "is not in the same block" }goto 50 ! { dg-warning "is not in the same block" }goto 222goto 333goto 444222 if (i < 0) then25 end if ! { dg-warning "is not in the same block" }333 if (i > 0) thendo j = 1,20goto 30end doelse if (i == 0) thengoto 30elsegoto 3030 end if444 select case(i)case(0)goto 50goto 60 ! { dg-warning "is not in the same block" }case(1)goto 40goto 5040 continue ! { dg-warning "is not in the same block" }60 continue ! { dg-warning "is not in the same block" }50 end select ! { dg-warning "is not in the same block" }continueend
Go to most recent revision | Compare with Previous | Blame | View Log
