1 ! RUN: %python %S/test_errors.py %s %flang_fc1
4 !ERROR: Format statement must be labeled
8 2002 format(DC
, F8
.2
, 3I8
, Z8
)
9 2003 format( D C
, F
8 . 2 , 3 I
8 , 3 Z
8 )
11 2005 format(20P
,F10
.2
)
12 2006 format(20P7F10
.2
)
18 2012 format(2L2 : 2L2)
22 2013 format(A10
) ! ok to reference outside the if block
25 ! C1302 warnings; no errors
31 !ERROR: Expected ',' or ')' in format expression
32 2101 format(3I83Z8
, 'abc')
34 !ERROR: Expected ',' or ')' in format expression
35 2102 format( 3 I
8 3 Z
8 )
37 !ERROR: Expected ',' or ')' in format expression
40 !ERROR: Expected ',' or ')' in format expression
44 3002 format(5X
,*(2(A
)))
46 !ERROR: Unlimited format item list must contain a data edit descriptor
49 !ERROR: Unlimited format item list must contain a data edit descriptor
50 3102 format(5X
,*(2(/)))
52 !ERROR: Unlimited format item list must contain a data edit descriptor
53 3103 format(5X
, 'abc', *((:)))
57 !ERROR: List repeat specifier must be positive
58 !ERROR: 'DT' edit descriptor repeat specifier must be positive
59 4101 format(0(X
), 0dt
)
61 6001 format(((I0
, B0
)))
63 !ERROR: 'A' edit descriptor 'w' value must be positive
64 !ERROR: 'L' edit descriptor 'w' value must be positive
65 6101 format((A0
), ((L0
)))
67 !ERROR: 'L' edit descriptor 'w' value must be positive
68 6102 format((3(((L
0 0 0)))))
70 7001 format(17G8
.1
, 17G8
.1e3
)
72 !ERROR: Expected 'G' edit descriptor '.d' value
77 !ERROR: A 'G0' edit descriptor must not have an 'e' value
78 8101 format(9(G0
.5e1
))
80 !ERROR: A 'G0' edit descriptor must not have an 'e' value
81 8102 format(9(G0
.5 E
1))