[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / io10.f90
blob8104a10d17d94dbffee277d69f80008feab56693
1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic -Werror
3 write(*, '(B0)')
4 write(*, '(B3)')
6 !WARNING: Expected 'B' edit descriptor 'w' value
7 write(*, '(B)')
9 !WARNING: Expected 'EN' edit descriptor 'w' value
10 !WARNING: Non-standard '$' edit descriptor
11 write(*, '(EN,$)')
13 !WARNING: Expected 'G' edit descriptor 'w' value
14 write(*, '(3G)')
16 !WARNING: Non-standard '\' edit descriptor
17 write(*,'(A, \)') 'Hello'
19 !WARNING: 'X' edit descriptor must have a positive position value
20 write(*, '(X)')
22 !WARNING: Legacy 'H' edit descriptor
23 write(*, '(3Habc)')
25 !WARNING: 'X' edit descriptor must have a positive position value
26 !WARNING: Expected ',' or ')' in format expression
27 !WARNING: 'X' edit descriptor must have a positive position value
28 write(*,'(XX)')
30 !WARNING: Expected ',' or ')' in format expression
31 write(*,'(RZEN8.2)')
33 !WARNING: Expected ',' or ')' in format expression
34 write(*,'(3P7I2)')
36 !WARNING: Expected ',' or ')' in format expression
37 write(*,'(5X i3)')
38 end