URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [init_flag_3.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-finit-integer=-1 -finit-logical=false -finit-real=nan" }! { dg-add-options ieee }! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }program init_flag_3call real_testcall logical_testcall int_testcall complex_testend program init_flag_3! Test some initializations for both implicitly and! explicitly declared local variables.subroutine real_testreal r1real r2(10)dimension r3(10,10)if (r1 .eq. r1) call abortif (r2(2) .eq. r2(2)) call abortif (r3(5,5) .eq. r3(5,5)) call abortif (r4 .eq. r4) call abortend subroutine real_testsubroutine logical_testlogical l1logical l2(2)if (l1 .neqv. .false.) call abortif (l2(2) .neqv. .false.) call abortend subroutine logical_testsubroutine int_testinteger i1integer i2(10)dimension i3(10,10)if (i1 /= -1) call abortif (i2(2) /= -1) call abortif (i3(5,5) /= -1) call abortif (i4 /= -1) call abortend subroutine int_testsubroutine complex_testcomplex c1complex c2(20,20)if (c1 .eq. c1) call abortif (c2(1,1) .eq. c2(1,1)) call abortend subroutine complex_test
