Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
f1c07d24
Commit
f1c07d24
authored
1 year ago
by
James K. Lowden
Browse files
Options
Downloads
Plain Diff
Merge branch 'parser' of gitlab.cobolworx.com:COBOLworx/gcc-cobol into parser
parents
01c628e7
36187c0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#1323
passed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gcc/cobol/UAT/bugsuite.src/bugs.at
+50
-0
50 additions, 0 deletions
gcc/cobol/UAT/bugsuite.src/bugs.at
with
50 additions
and
0 deletions
gcc/cobol/UAT/bugsuite.src/bugs.at
+
50
−
0
View file @
f1c07d24
...
...
@@ -87,3 +87,53 @@ PROCEDURE DIVISION USING var1 RETURNING var2.
AT_CHECK([$COMPILE prog.cob], [1], [], [])
AT_CLEANUP
AT_SETUP([LENGTH OF errorpalooza])
AT_KEYWORDS([bugs])
AT_DATA([prog.cob], [
identification division.
program-id. prog.
data division.
working-storage section.
77 pointer-value COMP PIC S9(8) VALUE ZERO.
77 point-at REDEFINES pointer-value USAGE POINTER.
77 vstring PIC X(64).
77 vnum PIC 999.
procedure division.
move length of vstring to vnum
display vnum
move length of vstring(12:34) to vnum
display vnum
display length of vstring
call "prog2" using by content length of vstring
call "prog3" using by value length of vstring
goback.
end program prog.
identification division.
program-id. prog2.
data division.
linkage section.
01 parm binary pic 9(9).
procedure division using parm.
display "prog2: parm is " parm
goback.
end program prog2.
identification division.
program-id. prog3.
data division.
linkage section.
01 parm binary pic 9(9).
procedure division using by value parm.
display "prog3: parm is " parm
goback.
end program prog3.
])
AT_CHECK([$COMPILE -dialect ibm prog.cob], [0], [], [])
AT_CHECK([$./a.out], [0], [064
034
64
prog2: parm is 000000000
prog3: parm is 000000032
], [])
AT_CLEANUP
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment