Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/scalarize_parameter_array_1.f90 @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
9 implicit none | 9 implicit none |
10 real,dimension(2,2),parameter::c=reshape((/1,2,3,4/),(/2,2/)) | 10 real,dimension(2,2),parameter::c=reshape((/1,2,3,4/),(/2,2/)) |
11 real,dimension(2,2)::m, n | 11 real,dimension(2,2)::m, n |
12 | 12 |
13 m=f()+c | 13 m=f()+c |
14 if (any (m .ne. reshape((/2,3,4,5/),(/2,2/)))) call abort () | 14 if (any (m .ne. reshape((/2,3,4,5/),(/2,2/)))) STOP 1 |
15 m=c+f() | 15 m=c+f() |
16 if (any (m .ne. reshape((/2,3,4,5/),(/2,2/)))) call abort () | 16 if (any (m .ne. reshape((/2,3,4,5/),(/2,2/)))) STOP 2 |
17 call sub(m+f()) | 17 call sub(m+f()) |
18 if (any (n .ne. reshape((/3,4,5,6/),(/2,2/)))) call abort () | 18 if (any (n .ne. reshape((/3,4,5,6/),(/2,2/)))) STOP 3 |
19 call sub(c+m) | 19 call sub(c+m) |
20 if (any (n .ne. reshape((/3,5,7,9/),(/2,2/)))) call abort () | 20 if (any (n .ne. reshape((/3,5,7,9/),(/2,2/)))) STOP 4 |
21 call sub(f()+c) | 21 call sub(f()+c) |
22 if (any (n .ne. reshape((/2,3,4,5/),(/2,2/)))) call abort () | 22 if (any (n .ne. reshape((/2,3,4,5/),(/2,2/)))) STOP 5 |
23 call sub(c+f()) | 23 call sub(c+f()) |
24 if (any (n .ne. reshape((/2,3,4,5/),(/2,2/)))) call abort () | 24 if (any (n .ne. reshape((/2,3,4,5/),(/2,2/)))) STOP 6 |
25 | 25 |
26 contains | 26 contains |
27 | 27 |
28 function f() | 28 function f() |
29 implicit none | 29 implicit none |