Debian Codegraph @

gcc/testsuite/gfortran.dg/analyzer/pr107210.f90

raw
1 ! { dg-additional-options "-O1" }
2
3 subroutine check_int (j)
4 INTEGER(4) :: i, ia(5), ib(5,4), ip, ipa(:)
5 target :: ib
6 POINTER :: ip, ipa
7 logical :: l(5)
8
9 ipa=>ib(2:3,1)
10
11 l = (/ sizeof(i) == 4, sizeof(ia) == 20, sizeof(ib) == 80, &
12 sizeof(ip) == 4, sizeof(ipa) == 8 /)
13
14 if (any(.not.l)) STOP 4
15
16 end subroutine check_int