diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/class_21.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/class_21.f03 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/class_21.f03 b/gcc/testsuite/gfortran.dg/class_21.f03 new file mode 100644 index 000000000..93b9616ae --- /dev/null +++ b/gcc/testsuite/gfortran.dg/class_21.f03 @@ -0,0 +1,18 @@ +! { dg-do compile } +! +! PR 43990: [OOP] ICE in output_constructor_regular_field, at varasm.c:4995 +! +! Reported by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de> + +module m + + type :: t + logical :: l = .true. + class(t),pointer :: cp => null() + end type + + type(t),save :: default_t + +end module + +! { dg-final { cleanup-modules "m" } } |