parent
977dc4d19f
commit
e2379148a6
5 changed files with 22 additions and 10 deletions
@ -1,6 +1,6 @@ |
|||||||
module mod1 |
module mod1 |
||||||
implicit none |
implicit none |
||||||
|
|
||||||
integer, parameter :: modval1 = @ONE@ |
integer, parameter :: modval1 = @ONE@ |
||||||
|
|
||||||
end module mod1 |
end module mod1 |
||||||
|
@ -1,7 +1,7 @@ |
|||||||
module mod2 |
module mod2 |
||||||
use mod1 |
use mod1, only : modval1 |
||||||
implicit none |
implicit none |
||||||
|
|
||||||
integer, parameter :: modval2 = @TWO@ |
integer, parameter :: modval2 = @TWO@ |
||||||
|
|
||||||
end module mod2 |
end module mod2 |
||||||
|
@ -0,0 +1,6 @@ |
|||||||
|
module mod3 |
||||||
|
implicit none |
||||||
|
|
||||||
|
integer, parameter :: modval3 = @THREE@ |
||||||
|
|
||||||
|
end module mod3 |
@ -1,7 +1,8 @@ |
|||||||
program prog |
program generated |
||||||
use mod2 |
use mod2, only : modval1, modval2 |
||||||
|
use mod3, only : modval3 |
||||||
implicit none |
implicit none |
||||||
|
|
||||||
if (modval1 + modval2 /= 3) stop 1 |
if (modval1 + modval2 + modval3 /= 6) error stop |
||||||
|
|
||||||
end program prog |
end program generated |
||||||
|
Loading…
Reference in new issue