Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/pointer_1.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 ! Testcase for PR34770 | |
2 ! { dg-do run } | |
3 implicit none | |
4 integer, target :: x(0:12) | |
5 integer, pointer :: z(:) | |
6 integer i | |
7 do i = 0,12 | |
8 x(i) = i | |
9 enddo | |
10 z => x | |
11 do i = 0,12 | |
12 if (x(i) /= i .or. z(i) /= i) call abort | |
13 enddo | |
14 end |