diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/dec_structure_14.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/dec_structure_14.f90 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/dec_structure_14.f90 b/gcc/testsuite/gfortran.dg/dec_structure_14.f90 new file mode 100644 index 00000000000..4e271b7390f --- /dev/null +++ b/gcc/testsuite/gfortran.dg/dec_structure_14.f90 @@ -0,0 +1,18 @@ + ! { dg-do "compile" } + ! { dg-options "-fdec-structure" } + ! + ! Test that structures inside a common block do not require the + ! SEQUENCE attribute, as derived types do. + ! + +common var + +structure /s/ + integer i + integer j + real r +end structure + +record /s/ var + +end |