Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1a6587c8
Commit
1a6587c8
authored
Aug 05, 2008
by
Arnaud Charlet
Committed by
Arnaud Charlet
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gnat.dg/post_block.adb: New test.
From-SVN: r138719
parent
302c3d8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gnat.dg/post_block.adb
+27
-0
No files found.
gcc/testsuite/ChangeLog
View file @
1a6587c8
2008-08-04 Arnaud Charlet <charlet@adacore.com>
* gnat.dg/post_block.adb: New test.
2008-08-05 Richard Guenther <rguenther@suse.de>
PR middle-end/37026
...
...
gcc/testsuite/gnat.dg/post_block.adb
0 → 100644
View file @
1a6587c8
--
{
dg
-
do
compile
}
--
{
dg
-
options
"-gnata"
}
procedure
Post_Block
is
package
Pack
is
function
Size
(
X
:
Integer
)
return
Integer
;
pragma
Postcondition
(
Size
'Result = Value (X)'
Length
);
--
OK
pragma
Postcondition
(
Value
(
X
)
'Length = Size'
Result
);
--
Calling
the
following
requires
a
transient
block
.
function
Value
(
X
:
Integer
)
return
String
;
end
Pack
;
package
body
Pack
is
function
Size
(
X
:
Integer
)
return
Integer
is
begin
return
0
;
end
;
function
Value
(
X
:
Integer
)
return
String
is
begin
return
Integer
'image (X);
end;
end Pack;
begin
null;
end;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment