diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/pr23373-1.f90')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/pr23373-1.f90 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/pr23373-1.f90 b/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/pr23373-1.f90 new file mode 100644 index 000000000..8d5ee658d --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/pr23373-1.f90 @@ -0,0 +1,15 @@ +program main + implicit none + real, dimension (:), pointer :: x + x => null () + x => test (x) + if (.not. associated (x)) call abort + if (size (x) .ne. 10) call abort +contains + function test (p) + real, dimension (:), pointer :: p, test + if (associated (p)) call abort + allocate (test (10)) + if (associated (p)) call abort + end function test +end program main |