Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/dec_init_2.f90 @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
14 integer, intent(inout) :: i2 | 14 integer, intent(inout) :: i2 |
15 real, intent(inout) :: r2 | 15 real, intent(inout) :: r2 |
16 character, intent(inout) :: c2 | 16 character, intent(inout) :: c2 |
17 logical, intent(inout) :: l2 | 17 logical, intent(inout) :: l2 |
18 print *, i1, i2, l1, l2, ichar(c1), ichar(c2), r1, r2 | 18 print *, i1, i2, l1, l2, ichar(c1), ichar(c2), r1, r2 |
19 if ( i1 .ne. 42 .or. i2 .ne. 42 ) call abort() | 19 if ( i1 .ne. 42 .or. i2 .ne. 42 ) STOP 1 |
20 if ( (.not. l1) .or. (.not. l2) ) call abort() | 20 if ( (.not. l1) .or. (.not. l2) ) STOP 2 |
21 if ( c1 .ne. achar(32) .or. c2 .ne. achar(32) ) call abort() | 21 if ( c1 .ne. achar(32) .or. c2 .ne. achar(32) ) STOP 3 |
22 if ( (.not. isnan(r1)) .or. (.not. isnan(r2)) ) call abort() | 22 if ( (.not. isnan(r1)) .or. (.not. isnan(r2)) ) STOP 4 |
23 end subroutine | 23 end subroutine |
24 | 24 |
25 ! Nb. the current implementation decides the -finit-* flags are meaningless | 25 ! Nb. the current implementation decides the -finit-* flags are meaningless |
26 ! with components of a union, so we omit the union test here. | 26 ! with components of a union, so we omit the union test here. |
27 | 27 |