PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / bound_1.f90
blobe0c90556bfa64fc71ba753fe015914e0ae008a69
1 ! { dg-do run }
2 implicit none
4 type test_type
5 integer, dimension(5) :: a
6 end type test_type
8 type (test_type), target :: tt(2)
9 integer i
11 i = ubound(tt(1)%a, 1)
12 if (i/=5) STOP 1
13 i = lbound(tt(1)%a, 1)
14 if (i/=1) STOP 2
16 i = ubound(tt, 1)
17 if (i/=2) STOP 3
18 i = lbound(tt, 1)
19 if (i/=1) STOP 4
20 end