-
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 branch 'develop' into bugfix/LS24004104/error-movel-for-input-s…
…tring
- Loading branch information
Showing
14 changed files
with
262 additions
and
18 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
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
10 changes: 10 additions & 0 deletions
10
rpgJavaInterpreter-core/src/test/resources/compilerDirectives/DUPDEF.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,10 @@ | ||
* Helper declarations | ||
D £DBG_Str S 2 | ||
|
||
* Copies containing a duplicate DEFINE | ||
/COPY DUPDEF1 | ||
/COPY DUPDEF2 | ||
|
||
* Test output | ||
C EVAL £DBG_Str='ok' | ||
C £DBG_Str DSPLY |
8 changes: 8 additions & 0 deletions
8
rpgJavaInterpreter-core/src/test/resources/compilerDirectives/DUPDEF1.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 @@ | ||
/IF NOT DEFINED(DUPLICATE_DEF_INCLUDED) | ||
/DEFINE DUPLICATE_DEF_INCLUDED | ||
C SR1 BEGSR | ||
C ENDSR | ||
|
||
C SR2 BEGSR | ||
C ENDSR | ||
/ENDIF |
8 changes: 8 additions & 0 deletions
8
rpgJavaInterpreter-core/src/test/resources/compilerDirectives/DUPDEF2.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 @@ | ||
/IF NOT DEFINED(DUPLICATE_DEF_INCLUDED) | ||
/DEFINE DUPLICATE_DEF_INCLUDED | ||
C SR1 BEGSR | ||
C ENDSR | ||
|
||
C SR2 BEGSR | ||
C ENDSR | ||
/ENDIF |
40 changes: 40 additions & 0 deletions
40
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00115.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,40 @@ | ||
V* ============================================================== | ||
V* 17/09/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Assignment, with Z-ADD, a value to a DS field defined as | ||
O * array and overlay. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix, the error occurred was | ||
O * Issue executing ZAddStmt at line xyz. null.. | ||
V* ============================================================== | ||
D MSG S 30 | ||
D COUNT S 3 0 INZ(1) | ||
D SUM S 12 6 INZ(0) | ||
|
||
D D5COSO E DS EXTNAME(D5COSO0F) | ||
D D50 DIM(99) LIKE(D$C001) INZ | ||
D OVERLAY(D5COSO:88) | ||
|
||
C Z-ADD 1 D50 #Issue executing ZAddStmt at line 20 | ||
C EXSR SHOW_RES | ||
C Z-ADD 0 D50 | ||
C EXSR SHOW_RES | ||
|
||
C SETON LR | ||
|
||
|
||
|
||
C SHOW_RES BEGSR | ||
|
||
C EVAL SUM=0 | ||
C EVAL COUNT=1 | ||
C 100 DOUEQ COUNT | ||
C EVAL SUM+=D50(COUNT) | ||
C EVAL COUNT+=1 | ||
C ENDDO | ||
C EVAL MSG=%CHAR(SUM) | ||
C MSG DSPLY | ||
|
||
C ENDSR |
65 changes: 65 additions & 0 deletions
65
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00116.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,65 @@ | ||
V* ============================================================== | ||
V* 18/09/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Assignment of an array, defined as field of DS, | ||
O * to a Standalone variable with MOVEA. | ||
V* ============================================================== | ||
O * JARIKO ANOMALY | ||
O * Before the fix, the error occurred was | ||
O * Issue executing MoveAStmt at line 32. An operation | ||
O * is not implemented: takeFirst not yet implemented | ||
O * for ProjectedArrayValue. | ||
V* ============================================================== | ||
D MSG S 30 | ||
D COUNT S 2 0 INZ(1) | ||
D AU1_SIZE S 2 0 INZ(10) | ||
|
||
D AUTOAP E DS EXTNAME(AUTOAP0F) | ||
D AU1 61 80 DIM(10) | ||
D £AUATI S 20 | ||
|
||
C EVAL AU1(1)='AA' | ||
C EVAL AU1(2)='BB' | ||
C EVAL AU1(3)='CC' | ||
C EVAL AU1(4)='DD' | ||
C EVAL AU1(5)='EE' | ||
C EVAL AU1(6)='FF' | ||
C EVAL AU1(7)='GG' | ||
C EVAL AU1(8)='HH' | ||
C EVAL AU1(9)='II' | ||
C EVAL AU1(10)='LL' | ||
C MOVEA AU1 £AUATI #An operation is not implemented: takeFirst not yet implemented for ProjectedArrayValue | ||
|
||
C EXSR SHOW_RES | ||
|
||
C CLEAR £AUATI | ||
C MOVEL *BLANKS AU1 | ||
C MOVEA AU1 £AUATI | ||
|
||
C EXSR SHOW_RES | ||
|
||
C SETON LR | ||
|
||
|
||
|
||
C SHOW_RES BEGSR | ||
* | ||
C EVAL COUNT=1 | ||
C AU1_SIZE DOULT COUNT | ||
C AU1(COUNT) DSPLY | ||
C EVAL COUNT+=1 | ||
C ENDDO | ||
C AA£O01 DSPLY | ||
C AA£O02 DSPLY | ||
C AA£O03 DSPLY | ||
C AA£O04 DSPLY | ||
C AA£O05 DSPLY | ||
C AA£O06 DSPLY | ||
C AA£O07 DSPLY | ||
C AA£O08 DSPLY | ||
C AA£O09 DSPLY | ||
C AA£O10 DSPLY | ||
C £AUATI DSPLY | ||
* | ||
C ENDSR |
36 changes: 36 additions & 0 deletions
36
rpgJavaInterpreter-core/src/test/resources/smeup/MUDRNRAPU00120.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,36 @@ | ||
V* ============================================================== | ||
V* 19/09/2024 APU001 Creation | ||
V* ============================================================== | ||
O * PROGRAM GOAL | ||
O * Assignment, with Z-ADD, a value to a S field defined | ||
O * as array. | ||
V* ============================================================== | ||
D MSG S 30 | ||
D COUNT S 3 0 INZ(1) | ||
D SUM S 12 6 INZ(0) | ||
|
||
|
||
D D50 S 5 0 DIM(99) INZ | ||
|
||
C Z-ADD 1 D50 | ||
C EXSR SHOW_RES | ||
|
||
C EVAL SUM=0 | ||
C EVAL COUNT=1 | ||
C Z-ADD 0 D50 | ||
C EXSR SHOW_RES | ||
|
||
C SETON LR | ||
|
||
|
||
|
||
C SHOW_RES BEGSR | ||
|
||
C 100 DOUEQ COUNT | ||
C EVAL SUM+=D50(COUNT) | ||
C EVAL COUNT+=1 | ||
C ENDDO | ||
C EVAL MSG=%CHAR(SUM) | ||
C MSG DSPLY | ||
|
||
C ENDSR |