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