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
a96ced8e
Commit
a96ced8e
authored
16 years ago
by
Arnaud Charlet
Committed by
Arnaud Charlet
16 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gnat.dg/not_null.adb: New test.
From-SVN: r138694
parent
c775e4a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
gcc/testsuite/ChangeLog
+1
-0
gcc/testsuite/gnat.dg/not_null.adb
+24
-0
No files found.
gcc/testsuite/ChangeLog
View file @
a96ced8e
2008-08-04 Arnaud Charlet <charlet@adacore.com>
* gnat.dg/access_discr2.adb: New test.
* gnat.dg/not_null.adb: New test.
2008-08-04 Richard Guenther <rguenther@suse.de>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gnat.dg/not_null.adb
0 → 100644
View file @
a96ced8e
--
{
dg
-
do
run
}
procedure
not_null
is
type
Not_Null_Int_Ptr
is
not
null
access
all
Integer
;
generic
F
:
Not_Null_Int_Ptr
:=
null
;
package
GPack
is
end
GPack
;
begin
declare
pragma
Warnings
(
Off
,
"*null not allowed in null-excluding objects"
);
pragma
Warnings
(
Off
,
"""Constraint_Error"" will be raised at run time"
);
package
Inst_2
is
new
GPack
(
null
);
pragma
Warnings
(
On
,
"*null not allowed in null-excluding objects"
);
pragma
Warnings
(
On
,
"""Constraint_Error"" will be raised at run time"
);
begin
null
;
end
;
exception
when
Constraint_Error
=>
null
;
end
not_null
;
This diff is collapsed.
Click to expand it.
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