1! { dg-do run }
2       open(10,status="foo",err=100) ! { dg-warning "STATUS specifier in OPEN statement .* has invalid value" }
3       call abort
4  100  continue
5       open(10,status="scratch")
6       end
7