1! RUN: %B/test/Semantics/test_errors.sh %s %flang %t 2 integer :: unit10 = 10 3 integer :: unit11 = 11 4 5 integer(kind=1) :: stat1 6 integer(kind=8) :: stat8 7 8 character(len=55) :: msg 9 10 close(unit10) 11 close(unit=unit11, err=9, iomsg=msg, iostat=stat1) 12 close(12, status='Keep') 13 14 close(iostat=stat8, 11) ! nonstandard 15 16 !ERROR: CLOSE statement must have a UNIT number specifier 17 close(iostat=stat1) 18 19 !ERROR: Duplicate UNIT specifier 20 close(13, unit=14, err=9) 21 22 !ERROR: Duplicate ERR specifier 23 close(err=9, unit=15, err=9, iostat=stat8) 24 25 !ERROR: Invalid STATUS value 'kept' 26 close(status='kept', unit=16) 27 28 !ERROR: Invalid STATUS value 'old' 29 close(status='old', unit=17) 30 319 continue 32end 33