File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1082,7 +1082,7 @@ contains
1082
1082
type(string_type), intent(in) :: rhs
1083
1083
type(string_type) :: string
1084
1084
1085
- string%raw = maybe(rhs ) // maybe(lhs )
1085
+ string%raw = maybe(lhs ) // maybe(rhs )
1086
1086
1087
1087
end function concat_string_string
1088
1088
Original file line number Diff line number Diff line change @@ -99,11 +99,15 @@ subroutine test_ne
99
99
end subroutine test_ne
100
100
101
101
subroutine test_concat
102
- type (string_type) :: string
103
-
104
- string = " Hello, "
105
- string = string // " World!"
106
- call check(len (string) == 13 )
102
+ type (string_type) :: a, b
103
+
104
+ a = " a"
105
+ b = " b"
106
+ call check( " a" // b == " ab" )
107
+ call check( a // " b" == " ab" )
108
+ call check( a // b == " ab" )
109
+ call check( a // " " == " a" )
110
+ call check( " " // b == " b" )
107
111
end subroutine test_concat
108
112
109
113
end module test_string_operator
You can’t perform that action at this time.
0 commit comments