program test use mymod1 use MyMod2 integer, parameter :: testVar = myModVal1 + myModVal2 end program test