Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/associate_20.f03 @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
130:e108057fa461 | 132:d34655255c78 |
---|---|
21 | 21 |
22 i(:,1) = (/ 1 , 3 , 5 /) | 22 i(:,1) = (/ 1 , 3 , 5 /) |
23 i(:,2) = (/ 4 , 5 , 6 /) | 23 i(:,2) = (/ 4 , 5 , 6 /) |
24 | 24 |
25 associate( ai => a(:,i(:,1))%i ) | 25 associate( ai => a(:,i(:,1))%i ) |
26 if (any(shape(ai) /= [2, 3])) call abort() | 26 if (any(shape(ai) /= [2, 3])) STOP 1 |
27 if (any(reshape(ai, [6]) /= [1 , -10, 3, -30, 5, -50])) call abort() | 27 if (any(reshape(ai, [6]) /= [1 , -10, 3, -30, 5, -50])) STOP 2 |
28 end associate | 28 end associate |
29 | 29 |
30 deallocate(a) | 30 deallocate(a) |
31 end program p | 31 end program p |