diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/cray_pointers_10.f90')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gfortran.dg/cray_pointers_10.f90 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/cray_pointers_10.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/cray_pointers_10.f90 new file mode 100644 index 000000000..1ac98f3ea --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gfortran.dg/cray_pointers_10.f90 @@ -0,0 +1,18 @@ +! { dg-do run } +! { dg-options "-fcray-pointer" } +! +! PR fortran/45187 +! +module foo + implicit none + real :: a + pointer(c_a, a) +end module foo + +program test + use foo + real :: z + c_a = loc(z) + a = 42 + if (z /= 42) call abort +end program test |