We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606e81a commit 7db17dfCopy full SHA for 7db17df
src/character/character_allocatable.f90
@@ -48,8 +48,11 @@ program character_alloctable
48
allocate(character(3) :: flex(2))
49
flex = [character(3) :: 'hi', 'bye']
50
if (size(flex) /= 2) error stop
51
-if (len(flex(1)) /= 3) error stop
52
-if (len_trim(flex(1)) /= 2) error stop
+if (len(flex(1)) /= 3) error stop "flex: len(flex(1)) /= 3"
+if (len_trim(flex(1)) /= 2) error stop "flex: len_trim(flex(1)) /= 2"
53
+if (flex(1) /= 'hi') error stop "flex: flex(1) /= 'hi'"
54
+if (flex(2) /= 'bye') error stop "flex: flex(2) /= 'bye'"
55
+
56
57
print *, "OK: allocatable character"
58
0 commit comments