Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/pr46985.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! PR tree-optimization/46985 |
2 ! { dg-do compile } | |
3 ! { dg-options "-O -ftree-pre -ftree-vrp -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre" } | |
4 | |
5 type :: t | |
6 integer :: i | |
7 end type t | |
8 type(t), target :: tar(2) = (/t(2), t(4)/) | |
9 integer, pointer :: ptr(:) | |
10 ptr => tar%i | |
11 call foo (ptr) | |
12 contains | |
13 subroutine foo (arg) | |
14 integer :: arg(:) | |
15 arg = arg - 1 | |
16 end subroutine | |
17 end |