aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/class_4a.f03
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/class_4a.f03')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/class_4a.f0315
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/class_4a.f03 b/gcc-4.9/gcc/testsuite/gfortran.dg/class_4a.f03
new file mode 100644
index 000000000..9441cc79c
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gfortran.dg/class_4a.f03
@@ -0,0 +1,15 @@
+! { dg-do compile }
+!
+! Test the fix for PR41583, in which the different source files
+! would generate the same 'vindex' for different class declared
+! types.
+!
+! The test comprises class_4a, class_4b class_4c and class_4d.f03
+
+! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
+!
+module m
+ type t
+ end type t
+end module m
+! { dg-final { keep-modules "m" } }