-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #606 from smeup/feature/LS24003953/parm-factor1
Feature/ls24003953/parm factor1
- Loading branch information
Showing
10 changed files
with
115 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
* Called by PRSLTCALLER.rpgle | ||
* Takes $A as parameter and updates it's value | ||
C *ENTRY PLIST | ||
C PARM $A 1 | ||
C PARM $B 1 | ||
C PARM $C 1 | ||
C EVAL $A = *ON |
7 changes: 7 additions & 0 deletions
7
rpgJavaInterpreter-core/src/test/resources/PRSLTCALLEE2.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
* Called by PRSLTCALLERDUPLICATE.rpgle | ||
C *ENTRY PLIST | ||
C PARM $A 1 | ||
C PARM $B 1 | ||
C PARM $C 1 | ||
C EVAL $A = *ON | ||
C EVAL $B = *OFF |
8 changes: 8 additions & 0 deletions
8
rpgJavaInterpreter-core/src/test/resources/PRSLTCALLEE3.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
* Called by PRSLTCALLERDUPLICATE.rpgle | ||
C *ENTRY PLIST | ||
C PARM $A 1 | ||
C PARM $B 1 | ||
C PARM $C 1 | ||
C EVAL $A = *ON | ||
C EVAL $B = *OFF | ||
C EVAL $A = *ON |
21 changes: 21 additions & 0 deletions
21
rpgJavaInterpreter-core/src/test/resources/PRSLTCALLER.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
* Helper declarations | ||
D £DBG_Str S 512 | ||
|
||
* Call PRSLTCALLEE passing parameter $A bound with *IN35 and $B bound with *IN36 | ||
* If $A or $B get updated by PRSLTCALLEE, the new value must be | ||
* bound to the factor 1 of the param (*IN35 or *IN36) | ||
C CALL 'PRSLTCALLEE' | ||
C *IN35 PARM *OFF $A 1 Should be updated | ||
C *IN36 PARM *OFF $B 1 Should not be updated | ||
C PARM *OFF $C 1 Should have no influence | ||
|
||
* Updated value output | ||
C EVAL £DBG_Str = '('+$A+','+*IN35+')' | ||
C £DBG_Str DSPLY | ||
* Not updated value output | ||
C EVAL £DBG_Str = '('+$B+','+*IN36+')' | ||
C £DBG_Str DSPLY | ||
* No influence output | ||
C EVAL £DBG_Str = '('+$A+','+*IN35+','+$B+','+ | ||
C *IN36+','+$C+')' | ||
C £DBG_Str DSPLY |
41 changes: 41 additions & 0 deletions
41
rpgJavaInterpreter-core/src/test/resources/PRSLTCALLERDUPLICATE.rpgle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
* Helper declarations | ||
D £DBG_Str S 512 | ||
|
||
* A variant of PRSLTCALLER binding the same identifier (*IN35) to parameters $A and $B | ||
* Assignment should happen sequentially from first to last on call exit | ||
|
||
* Only update $A | ||
C CALL 'PRSLTCALLEE' | ||
C *IN35 PARM *OFF $A 1 Should be updated | ||
C *IN35 PARM *OFF $B 1 Should not be updated | ||
C PARM *OFF $C 1 Should have no influence | ||
|
||
* $A is the last value updated output | ||
C *IN35 DSPLY | ||
|
||
* Update $A then $B | ||
C CALL 'PRSLTCALLEE2' | ||
C *IN35 PARM *OFF $A 1 Should be updated | ||
C *IN35 PARM *OFF $B 1 Should be updated | ||
C PARM *OFF $C 1 Should have no influence | ||
|
||
* $B is the last value updated output | ||
C *IN35 DSPLY | ||
|
||
* Update $A then $B then $A again | ||
C CALL 'PRSLTCALLEE3' | ||
C *IN35 PARM *OFF $A 1 Should be updated | ||
C *IN35 PARM *OFF $B 1 Should be updated | ||
C PARM *OFF $C 1 Should have no influence | ||
|
||
* Mixed update test | ||
C *IN35 DSPLY | ||
|
||
* Update $A then $B then $A again without duplicate binding | ||
C CALL 'PRSLTCALLEE3' | ||
C *IN35 PARM *OFF $A 1 Should be updated | ||
C PARM *OFF $B 1 Should be updated | ||
C PARM *OFF $C 1 Should have no influence | ||
|
||
* Mixed update test | ||
C *IN35 DSPLY |