2 ! { dg-add-options ieee }
3 real :: a(3), nan
, minf
, pinf
4 real, allocatable
:: c(:)
19 if (ia(1).ne
.1) STOP 1
22 if (ia(1).ne
.1) STOP 2
25 if (ia(1).ne
.3) STOP 3
28 if (ia(1).ne
.2) STOP 4
31 if (ia(1).ne
.2) STOP 5
34 if (ia(1).ne
.1) STOP 6
37 if (ia(1).ne
.1) STOP 7
40 if (ia(1).ne
.3) STOP 8
43 if (ia(1).ne
.2) STOP 9
46 if (ia(1).ne
.2) STOP 10
50 ia
= maxloc (a
, mask
= l
)
51 if (ia(1).ne
.0) STOP 11
52 ia
= maxloc (a
, mask
= l2
)
53 if (ia(1).ne
.0) STOP 12
55 ia
= maxloc (a
, mask
= l
)
56 if (ia(1).ne
.0) STOP 13
57 ia
= maxloc (a
, mask
= l2
)
58 if (ia(1).ne
.0) STOP 14
60 ia
= maxloc (a
, mask
= l
)
61 if (ia(1).ne
.0) STOP 15
62 ia
= maxloc (a
, mask
= l2
)
63 if (ia(1).ne
.0) STOP 16
65 ia
= maxloc (a
, mask
= l
)
66 if (ia(1).ne
.0) STOP 17
67 ia
= maxloc (a
, mask
= l2
)
68 if (ia(1).ne
.0) STOP 18
70 ia
= maxloc (a
, mask
= l
)
71 if (ia(1).ne
.0) STOP 19
72 ia
= maxloc (a
, mask
= l2
)
73 if (ia(1).ne
.0) STOP 20
75 ia
= maxloc (c
, mask
= l
)
76 if (ia(1).ne
.0) STOP 21
77 ia
= maxloc (c
, mask
= l2
)
78 if (ia(1).ne
.0) STOP 22
80 ia
= maxloc (c
, mask
= l
)
81 if (ia(1).ne
.0) STOP 23
82 ia
= maxloc (c
, mask
= l2
)
83 if (ia(1).ne
.0) STOP 24
85 ia
= maxloc (c
, mask
= l
)
86 if (ia(1).ne
.0) STOP 25
87 ia
= maxloc (c
, mask
= l2
)
88 if (ia(1).ne
.0) STOP 26
90 ia
= maxloc (c
, mask
= l
)
91 if (ia(1).ne
.0) STOP 27
92 ia
= maxloc (c
, mask
= l2
)
93 if (ia(1).ne
.0) STOP 28
95 ia
= maxloc (c
, mask
= l
)
96 if (ia(1).ne
.0) STOP 29
97 ia
= maxloc (c
, mask
= l2
)
98 if (ia(1).ne
.0) STOP 30
102 ia
= maxloc (a
, mask
= l
)
103 if (ia(1).ne
.1) STOP 31
104 ia
= maxloc (a
, mask
= l2
)
105 if (ia(1).ne
.1) STOP 32
107 ia
= maxloc (a
, mask
= l
)
108 if (ia(1).ne
.1) STOP 33
109 ia
= maxloc (a
, mask
= l2
)
110 if (ia(1).ne
.1) STOP 34
112 ia
= maxloc (a
, mask
= l
)
113 if (ia(1).ne
.3) STOP 35
114 ia
= maxloc (a
, mask
= l2
)
115 if (ia(1).ne
.3) STOP 36
117 ia
= maxloc (a
, mask
= l
)
118 if (ia(1).ne
.2) STOP 37
119 ia
= maxloc (a
, mask
= l2
)
120 if (ia(1).ne
.2) STOP 38
122 ia
= maxloc (a
, mask
= l
)
123 if (ia(1).ne
.2) STOP 39
124 ia
= maxloc (a
, mask
= l2
)
125 if (ia(1).ne
.2) STOP 40
127 ia
= maxloc (c
, mask
= l
)
128 if (ia(1).ne
.1) STOP 41
129 ia
= maxloc (c
, mask
= l2
)
130 if (ia(1).ne
.1) STOP 42
132 ia
= maxloc (c
, mask
= l
)
133 if (ia(1).ne
.1) STOP 43
134 ia
= maxloc (c
, mask
= l2
)
135 if (ia(1).ne
.1) STOP 44
137 ia
= maxloc (c
, mask
= l
)
138 if (ia(1).ne
.3) STOP 45
139 ia
= maxloc (c
, mask
= l2
)
140 if (ia(1).ne
.3) STOP 46
142 ia
= maxloc (c
, mask
= l
)
143 if (ia(1).ne
.2) STOP 47
144 ia
= maxloc (c
, mask
= l2
)
145 if (ia(1).ne
.2) STOP 48
147 ia
= maxloc (c
, mask
= l
)
148 if (ia(1).ne
.2) STOP 49
149 ia
= maxloc (c
, mask
= l2
)
150 if (ia(1).ne
.2) STOP 50
154 if (ia(1).ne
.0) STOP 51