[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / shape_7.f90
blob03f59511972b6ca6f9f6b5b78521e6c0ba6f2556
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR fortran/52093
6 ! Contributed by Mohammad Rahmani
9 Program Main
10 Implicit None
11 Integer:: X(2,2)
12 Integer:: X2(7:11,8:9)
14 if (size((X)) /= 4) call abort ()
15 if (any (Shape((X)) /= [2,2])) call abort ()
16 if (any (lbound((X)) /= [1,1])) call abort ()
17 if (any (ubound((X)) /= [2,2])) call abort ()
19 if (size(X2) /= 10) call abort ()
20 if (any (Shape(X2) /= [5,2])) call abort ()
21 if (any (lbound(X2) /= [7,8])) call abort ()
22 if (any (ubound(X2) /= [11,9])) call abort ()
24 if (size((X2)) /= 10) call abort ()
25 if (any (Shape((X2)) /= [5,2])) call abort ()
26 if (any (lbound((X2)) /= [1,1])) call abort ()
27 if (any (ubound((X2)) /= [5,2])) call abort ()
28 End Program Main
30 ! { dg-final { scan-tree-dump-times "abort" 0 "original" } }