Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/nonreturning_statements.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-final { scan-assembler-not "should_be_noreturn" } } ! PR 17758 ! This checks that non-returning subroutines and statements ! really don't return by calling non-existing subroutines ! afterwards. These calls are supposed to be optimized away, so ! they won't show up in the generated assembly. program main character(len=5) :: c c = '12345' read(unit=c,fmt='(A)') i select case(i) case(1) call abort call abort_should_be_noreturn case(2) stop 65 call stop_numeric_should_be_noreturn case(3) stop "foobar" call stop_string_should_be_noreturn case(4) call exit call exit_should_be_noreturn end select end program main