URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [init_flag_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-finit-local-zero -fbackslash" }program init_flag_1call real_testcall logical_testcall int_testcall complex_testcall char_testend program init_flag_1! Test some initializations for both implicitly and! explicitly declared local variables.subroutine real_testreal r1real r2(10)dimension r3(10,10)if (r1 /= 0.0) call abortif (r2(2) /= 0.0) call abortif (r3(5,5) /= 0.0) call abortif (r4 /= 0.0) 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 /= 0) call abortif (i2(2) /= 0) call abortif (i3(5,5) /= 0) call abortif (i4 /= 0) call abortend subroutine int_testsubroutine complex_testcomplex c1complex c2(20,20)if (c1 /= (0.0,0.0)) call abortif (c2(1,1) /= (0.0,0.0)) call abortend subroutine complex_testsubroutine char_testcharacter*1 c1character*8 c2, c3(5)character c4(10)if (c1 /= '\0') call abortif (c2 /= '\0\0\0\0\0\0\0\0') call abortif (c3(1) /= '\0\0\0\0\0\0\0\0') call abortif (c3(5) /= '\0\0\0\0\0\0\0\0') call abortif (c4(5) /= '\0') call abortend subroutine char_test
