Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/array_3.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
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 |