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
91e6e982
Commit
91e6e982
authored
3 months ago
by
rdubner
Browse files
Options
Downloads
Patches
Plain Diff
UAT for DECLARATIVES with and without following SECTION
parent
c3bf9a86
No related branches found
No related tags found
No related merge requests found
Pipeline
#2312
failed
3 months ago
Stage: build
Stage: test
Stage: deploy
Stage: release
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gcc/cobol/UAT/testsuite.src/syn_misc.at
+22
-1
22 additions, 1 deletion
gcc/cobol/UAT/testsuite.src/syn_misc.at
with
22 additions
and
1 deletion
gcc/cobol/UAT/testsuite.src/syn_misc.at
+
22
−
1
View file @
91e6e982
...
...
@@ -1000,4 +1000,25 @@ AT_DATA([prog.cob], [ identification division.
])
AT_CHECK([$COMPILE prog.cob], [1], [], [cobol1: error: -main switch says "prog.cob" should contain the starting program, but none was found
])
AT_CLEANUP
\ No newline at end of file
AT_CLEANUP
AT_SETUP([DECLARATIVES with following SECTION])
AT_KEYWORDS([DECLARATIVES])
AT_DATA([prog.cob], [ identification division.
program-id. prog.
procedure division.
DECLARATIVES.
declaratives-ec-all section.
use after exception condition ec-all.
display " declarative for ec-all".
end declaratives.
display "hello".
end program prog.
])
AT_CHECK([$COMPILE prog.cob], [1], [], [prog.cob:9: error: ISO programs with DECLARATIVES must begin with a SECTION unless -dialect ibm
cobol1: error: failed compiling prog.cob
])
AT_CHECK([$COMPILE -dialect ibm prog.cob], [0], [], [])
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