1! { dg-do compile }
2! PR fortran/50556
3subroutine foo
4 save i
5 namelist /i/ ii ! { dg-error "cannot have the SAVE attribute" }
6end subroutine foo
7subroutine bar
8 namelist /i/ ii
9 save i ! { dg-error "cannot have the SAVE attribute" }
10end subroutine bar
11