1! RUN: %S/test_errors.sh %s %t %f18 21001 format(A) 3 4 !ERROR: Format statement must be labeled 5 format(A) 6 72001 format(3I8, 3Z8) 82002 format(3I8, Z8) 92003 format( 3 I 8 , 3 Z 8 ) 102004 format(20PF10.2) 112005 format(20P,F10.2) 122006 format(20P7F10.2) 132007 format(1X/) 142008 format(/02x) 152009 format(1x/02x) 162010 format(2L2:) 172011 format(:2L2) 182012 format(2L2 : 2L2) 19 20 write(*,2013) 'Hello' 21 if (2+2.eq.4) then 222013 format(A10) ! ok to reference outside the if block 23 endif 24 25 ! C1302 warnings; no errors 262051 format(1X3/) 272052 format(1X003/) 282053 format(3P7I2) 292054 format(3PI2) 30 31 !ERROR: Expected ',' or ')' in format expression 322101 format(3I83Z8, 'abc') 33 34 !ERROR: Expected ',' or ')' in format expression 352102 format( 3 I 8 3 Z 8 ) 36 37 !ERROR: Expected ',' or ')' in format expression 382103 format(3I8 3Z8) 39 40 !ERROR: Expected ',' or ')' in format expression 412104 format(3I8 Z8) 42 433001 format(*(I3)) 443002 format(5X,*(2(A))) 45 46 !ERROR: Unlimited format item list must contain a data edit descriptor 473101 format(*(X)) 48 49 !ERROR: Unlimited format item list must contain a data edit descriptor 503102 format(5X,*(2(/))) 51 52 !ERROR: Unlimited format item list must contain a data edit descriptor 533103 format(5X, 'abc', *((:))) 54 554001 format(2(X)) 56 57 !ERROR: List repeat specifier must be positive 58 !ERROR: 'DT' edit descriptor repeat specifier must be positive 594101 format(0(X), 0dt) 60 616001 format(((I0, B0))) 62 63 !ERROR: 'A' edit descriptor 'w' value must be positive 64 !ERROR: 'L' edit descriptor 'w' value must be positive 656101 format((A0), ((L0))) 66 67 !ERROR: 'L' edit descriptor 'w' value must be positive 686102 format((3(((L 0 0 0))))) 69 707001 format(17G8.1, 17G8.1e3) 71 72 !ERROR: Expected 'G' edit descriptor '.d' value 737101 format(17G8) 74 758001 format(9G0.5) 76 77 !ERROR: Unexpected 'e' in 'G0' edit descriptor 788101 format(9(G0.5e1)) 79 80 !ERROR: Unexpected 'e' in 'G0' edit descriptor 818102 format(9(G0.5 E 1)) 82end 83