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
5da9694c
Commit
5da9694c
authored
13 years ago
by
Eric Botcazou
Committed by
Eric Botcazou
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
* gnat.dg/opt19.adb: New test.
From-SVN: r179047
parent
116b9c07
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gcc/testsuite/ChangeLog
+4
-0
4 additions, 0 deletions
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt19.adb
+27
-0
27 additions, 0 deletions
gcc/testsuite/gnat.dg/opt19.adb
with
31 additions
and
0 deletions
gcc/testsuite/ChangeLog
+
4
−
0
View file @
5da9694c
2011-09-21 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/opt19.adb: New test.
2011-09-21 Terry Guo <terry.guo@arm.com>
2011-09-21 Terry Guo <terry.guo@arm.com>
* gcc.target/arm/neon-thumb2-move.c: Skip the warning message
* gcc.target/arm/neon-thumb2-move.c: Skip the warning message
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gnat.dg/opt19.adb
0 → 100644
+
27
−
0
View file @
5da9694c
-- { dg-do compile }
-- { dg-options "-O" }
procedure
Opt19
is
type
Enum
is
(
One
,
Two
);
type
Vector_T
is
array
(
Enum
)
of
Integer
;
Zero_Vector
:
constant
Vector_T
:=
(
Enum
=>
0
);
type
T
is
record
Vector
:
Vector_T
;
end
record
;
procedure
Nested
(
Value
:
in
out
T
;
E
:
Enum
;
B
:
out
Boolean
)
is
I
:
Integer
renames
Value
.
Vector
(
E
);
begin
B
:=
I
/=
0
;
end
;
Obj
:
T
:=
(
Vector
=>
Zero_Vector
);
B
:
Boolean
;
begin
Nested
(
Obj
,
One
,
B
);
end
;
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