File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
test/example_packages/hello_complex/source Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
module farewell_m
2
+ use subdir_constants, only: FAREWELL_STR
2
3
implicit none
3
4
private
4
5
@@ -8,6 +9,6 @@ function make_farewell(name) result(greeting)
8
9
character (len=* ), intent (in ) :: name
9
10
character (len= :), allocatable :: greeting
10
11
11
- greeting = " Goodbye, " // name // " !"
12
+ greeting = FAREWELL_STR // name // " !"
12
13
end function make_farewell
13
14
end module farewell_m
Original file line number Diff line number Diff line change 1
1
module greet_m
2
+ use subdir_constants, only: GREET_STR
2
3
implicit none
3
4
private
4
5
@@ -8,6 +9,6 @@ function make_greeting(name) result(greeting)
8
9
character (len=* ), intent (in ) :: name
9
10
character (len= :), allocatable :: greeting
10
11
11
- greeting = " Hello, " // name // " !"
12
+ greeting = GREET_STR // name // " !"
12
13
end function make_greeting
13
14
end module greet_m
Original file line number Diff line number Diff line change
1
+ module subdir_constants
2
+ implicit none
3
+
4
+ character (* ), parameter :: GREET_STR = ' Hello, '
5
+ character (* ), parameter :: FAREWELL_STR = ' Goodbye, '
6
+
7
+ end module subdir_constants
You can’t perform that action at this time.
0 commit comments