aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/pointer_check_8.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/pointer_check_8.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/pointer_check_8.f9021
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/pointer_check_8.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/pointer_check_8.f90
new file mode 100644
index 000000000..99c6652f2
--- /dev/null
+++ b/gcc-4.9/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