You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flang/test/Semantics/io04.f90
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,23 @@
138
138
139
139
write(*, '(X)')
140
140
141
+
!ERROR: I/O unit must be a character variable or a scalar integer expression, but is an expression of type CHARACTER(1)
142
+
write((msg), *)
143
+
!ERROR: I/O unit must be a character variable or a scalar integer expression, but is an expression of type CHARACTER(KIND=1,LEN=8_8)
144
+
write("a string", *)
145
+
!ERROR: I/O unit must be a character variable or a scalar integer expression, but is an expression of type CHARACTER(1)
146
+
write(msg//msg, *)
147
+
!ERROR: I/O unit must be a character variable or a scalar integer expression, but is an expression of type LOGICAL(4)
148
+
write(.true., *)
149
+
!ERROR: I/O unit must be a character variable or a scalar integer expression, but is an expression of type REAL(4)
150
+
write(1.0, *)
151
+
write(internal_fileA, *)
152
+
!! Not sure why this isn't an error with this message: I/O unit must be a character variable or a scalar integer expression, but is an expression of type CHARACTER(1)
0 commit comments