OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [shape_7.f90] - Blame information for rev 708

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-fdump-tree-original" }
3
!
4
! PR fortran/52093
5
!
6
! Contributed by Mohammad Rahmani
7
!
8
 
9
Program Main
10
 Implicit None
11
 Integer:: X(2,2)
12
 Integer:: X2(7:11,8:9)
13
 
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 ()
18
 
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 ()
23
 
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
29
 
30
! { dg-final { scan-tree-dump-times "abort" 0 "original" } }
31
! { dg-final { cleanup-tree-dump "original" } }
32
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.