diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pointer_check_8.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/pointer_check_8.f90 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pointer_check_8.f90 b/gcc/testsuite/gfortran.dg/pointer_check_8.f90 new file mode 100644 index 000000000..99c6652f2 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pointer_check_8.f90 @@ -0,0 +1,21 @@ +! { dg-do compile } +! { dg-options "-fcheck=pointer" } +! +! PR 46809: [OOP] ICE with -fcheck=pointer for CLASS IS +! +! Contributed by Salvatore Filippone <sfilippone@uniroma2.it> + + type t + end type t + +contains + + subroutine sub(a) + class(t) :: a + select type (a) + class is (t) + print *, 'Hi there' + end select + end subroutine + +end |