111
|
1 ! { dg-do run }
|
|
2 program p
|
|
3 implicit none
|
|
4
|
|
5 real , parameter :: arr(3) = [ real :: 2, 2.5, (1.5, 2.5) ]
|
|
6 real , parameter :: ari(3) = [ integer :: 2, 2.5, (1.5, 2.5) ]
|
|
7 real , parameter :: arc(3) = [ complex :: 2, 2.5, (1.5, 2.5) ]
|
|
8 integer, parameter :: air(3) = [ real :: 2, 2.5, (1.5, 2.5) ]
|
|
9 integer, parameter :: aii(3) = [ integer :: 2, 2.5, (1.5, 2.5) ]
|
|
10 integer, parameter :: aic(3) = [ complex :: 2, 2.5, (1.5, 2.5) ]
|
|
11 complex, parameter :: acr(3) = [ real :: 2, 2.5, (1.5, 2.5) ]
|
|
12 complex, parameter :: aci(3) = [ integer :: 2, 2.5, (1.5, 2.5) ]
|
|
13 complex, parameter :: acc(3) = [ complex :: 2, 2.5, (1.5, 2.5) ]
|
|
14
|
|
15 real , parameter :: mrr(3) = 4.5 * [ real :: 2, 2.5, (3.5, 4.0) ]
|
|
16 real , parameter :: mri(3) = 4.5 * [ integer :: 2, 2.5, (3.5, 4.0) ]
|
|
17 real , parameter :: mrc(3) = 4.5 * [ complex :: 2, 2.5, (3.5, 4.0) ]
|
|
18 integer, parameter :: mir(3) = 4 * [ real :: 2, 2.5, (3.5, 4.0) ]
|
|
19 integer, parameter :: mii(3) = 4 * [ integer :: 2, 2.5, (3.5, 4.0) ]
|
|
20 integer, parameter :: mic(3) = 4 * [ complex :: 2, 2.5, (3.5, 4.0) ]
|
|
21 complex, parameter :: mcr(3) = (4.5, 5.5) * [ real :: 2, 2.5, (3.5, 4.0) ]
|
|
22 complex, parameter :: mci(3) = (4.5, 5.5) * [ integer :: 2, 2.5, (3.5, 4.0) ]
|
|
23 complex, parameter :: mcc(3) = (4.5, 5.5) * [ complex :: 2, 2.5, (3.5, 4.0) ]
|
|
24
|
131
|
25 if (any(arr /= [2.00, 2.50, 1.50])) STOP 1
|
|
26 if (any(ari /= [2.00, 2.00, 1.00])) STOP 2
|
|
27 if (any(arc /= [2.00, 2.50, 1.50])) STOP 3
|
111
|
28
|
131
|
29 if (any(air /= [2, 2, 1])) STOP 4
|
|
30 if (any(aii /= [2, 2, 1])) STOP 5
|
|
31 if (any(aic /= [2, 2, 1])) STOP 6
|
111
|
32
|
131
|
33 if (any(acr /= [(2.00, 0.00), (2.50, 0.00), (1.50, 0.00)])) STOP 7
|
|
34 if (any(aci /= [(2.00, 0.00), (2.00, 0.00), (1.00, 0.00)])) STOP 8
|
|
35 if (any(acc /= [(2.00, 0.00), (2.50, 0.00), (1.50, 2.50)])) STOP 9
|
111
|
36
|
131
|
37 if (any(mrr /= [9.00, 11.25, 15.75])) STOP 10
|
|
38 if (any(mri /= [9.00, 9.00, 13.50])) STOP 11
|
|
39 if (any(mrc /= [9.00, 11.25, 15.75])) STOP 12
|
111
|
40
|
131
|
41 if (any(mir /= [8, 10, 14])) STOP 13
|
|
42 if (any(mii /= [8, 8, 12])) STOP 14
|
|
43 if (any(mic /= [8, 10, 14])) STOP 15
|
111
|
44
|
131
|
45 if (any(mcr /= [(9.00, 11.00), (11.25, 13.75), (15.75, 19.25)])) STOP 16
|
|
46 if (any(mci /= [(9.00, 11.00), ( 9.00, 11.00), (13.50, 16.50)])) STOP 17
|
|
47 if (any(mcc /= [(9.00, 11.00), (11.25, 13.75), (-6.25, 37.25)])) STOP 18
|
111
|
48
|
|
49 end program p
|