Add a testcasef for PR tree-optimization/43688.

2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR tree-optimization/43688
	* gfortran.dg/pr43688.f90: New.

From-SVN: r160224
This commit is contained in:
H.J. Lu 2010-06-03 14:53:06 +00:00 committed by H.J. Lu
parent f278d75781
commit 0c1b8fe999
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
PR tree-optimization/43688
* gfortran.dg/pr43688.f90: New.
2010-06-03 Richard Guenther <rguenther@suse.de>
PR lto/41584

View File

@ -0,0 +1,11 @@
! { dg-do compile }
! { dg-options "-O0 -fipa-reference" }
subroutine sub
type :: a
integer :: i = 42
end type a
type(a), target :: dt(2)
integer, pointer :: ip(:)
ip => dt%i
end subroutine