aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg
diff options
context:
space:
mode:
authorNicolas Koenig <koenigni@student.ethz.ch>2017-04-04 15:41:41 +0200
committerNicolas Koenig <koenigni@gcc.gnu.org>2017-04-04 13:41:41 +0000
commit15f12d9677a4f8284578d03003fca4a6b78cc6d4 (patch)
tree47ead797c2864d6fb28699977ba4feebd71787e9 /gcc/testsuite/gfortran.dg
parentd90175a4bb3409aed1318b74bbe75c3abb889e38 (diff)
downloadgcc-15f12d9677a4f8284578d03003fca4a6b78cc6d4.zip
gcc-15f12d9677a4f8284578d03003fca4a6b78cc6d4.tar.gz
gcc-15f12d9677a4f8284578d03003fca4a6b78cc6d4.tar.bz2
[multiple changes]
2017-03-18 Nicolas Koenig <koenigni@student.ethz.ch> PR fortran/69498 * symbol.c (gfc_delete_symtree): If there is a period in the name, ignore everything before it. 2017-03-18 Nicolas Koenig <koenigni@student.ethz.ch> PR fortran/69498 * gfortran.dg/submodule_unexp.f90: New test. From-SVN: r246679
Diffstat (limited to 'gcc/testsuite/gfortran.dg')
-rw-r--r--gcc/testsuite/gfortran.dg/submodule_unexp.f908
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/submodule_unexp.f90 b/gcc/testsuite/gfortran.dg/submodule_unexp.f90
new file mode 100644
index 0000000..43a0553
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/submodule_unexp.f90
@@ -0,0 +1,8 @@
+! { dg-do compile }
+! PR fortran/69498
+! This used to ICE
+program p
+ type t
+ submodule (m) sm ! { dg-error "Unexpected SUBMODULE statement at" }
+ end type
+end