Debian Codegraph @

gcc/testsuite/gfortran.dg/common_31.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/119199 - reject SAVE of a COMMON in a BLOCK construct
3 !
4 ! F2023:C1108: A SAVE statement in a BLOCK construct shall contain a
5 ! saved-entity-list that does not specify a common-block-name.
6 !
7 ! Contributed by David Binderman
8
9 program main
10 real r
11 common /argmnt2/ r
12 block
13 save /argmnt2/ ! { dg-error "not allowed in a BLOCK construct" }
14 end block
15 end