Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/array_3.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 (2020-02-13) |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! PR31610 ICE with transfer, merge in gfc_conv_expr_descriptor | |
3 integer :: i(1) = 1 | |
4 integer :: foo(3) | |
5 integer :: n(1) | |
6 foo(1) = 17 | |
7 foo(2) = 55 | |
8 foo(3) = 314 | |
9 print *, i, foo | |
10 write(*,*) foo([1]), foo([1]+i), [1]+1 | |
11 n = foo([1]+i) | |
12 print *, n, shape(foo([1]+i)), shape(foo(i+[1])) | |
13 end |