diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/common_5.f')
-rw-r--r-- | gcc/testsuite/gfortran.dg/common_5.f | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/common_5.f b/gcc/testsuite/gfortran.dg/common_5.f new file mode 100644 index 000000000..0f04b1360 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/common_5.f @@ -0,0 +1,11 @@ +C { dg-do compile } +C { dg-options "-pedantic-errors -mdalign" { target sh*-*-* } } +C PR 20059 +C Check that the warning for padding works correctly. + SUBROUTINE PLOTZ + IMPLICIT DOUBLE PRECISION (A-H,O-Z) + COMMON /CCPOOL/ RMIN,RMAX,ZMIN,ZMAX,IMIN,JMIN,IMAX,JMAX,NFLOP, ! { dg-warning "Padding" } + $ HTP +C + RETURN + END |