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
e66d38fe
Commit
e66d38fe
authored
Dec 24, 2010
by
Eric Botcazou
Committed by
Eric Botcazou
Dec 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gnat.dg/opt13_pkg.ad[sb]: Fix line ending.
From-SVN: r168227
parent
877bf195
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
46 deletions
+50
-46
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gnat.dg/opt13_pkg.adb
+31
-31
gcc/testsuite/gnat.dg/opt13_pkg.ads
+15
-15
No files found.
gcc/testsuite/ChangeLog
View file @
e66d38fe
2010
-
12
-
24
Eric
Botcazou
<
ebotcazou
@adacore
.
com
>
*
gnat
.
dg
/
opt13_pkg
.
ad
[
sb
]
:
Fix
line
ending
.
2010
-
12
-
24
Nicola
Pero
<
nicola
.
pero
@meta
-
innovation
.
com
>
2010
-
12
-
24
Nicola
Pero
<
nicola
.
pero
@meta
-
innovation
.
com
>
*
obj
-
c
.
dg
/
gnu
-
api
-
2
-
class
.
m
:
Test
that
class_conformsToProtocol
()
*
obj
-
c
.
dg
/
gnu
-
api
-
2
-
class
.
m
:
Test
that
class_conformsToProtocol
()
...
...
gcc/testsuite/gnat.dg/opt13_pkg.adb
View file @
e66d38fe
package
body
Opt13_Pkg
is
package
body
Opt13_Pkg
is
subtype
Index_Type
is
Natural
range
0
..
16
;
subtype
Index_Type
is
Natural
range
0
..
16
;
type
Arr
is
array
(
Index_Type
range
<>)
of
Integer
;
type
Arr
is
array
(
Index_Type
range
<>)
of
Integer
;
type
Rec
is
record
type
Rec
is
record
F1
,
F2
,
F3
:
Float
;
F1
,
F2
,
F3
:
Float
;
N
:
Natural
;
N
:
Natural
;
B1
,
B2
:
Boolean
;
B1
,
B2
:
Boolean
;
F4
:
Float
;
F4
:
Float
;
end
record
;
end
record
;
type
Data
(
D
:
Index_Type
)
is
record
type
Data
(
D
:
Index_Type
)
is
record
A
:
Arr
(
1
..
D
);
A
:
Arr
(
1
..
D
);
R
:
Rec
;
R
:
Rec
;
end
record
;
end
record
;
Zero
:
constant
Rec
:=
(
0.0
,
0.0
,
0.0
,
0
,
False
,
False
,
0.0
);
Zero
:
constant
Rec
:=
(
0.0
,
0.0
,
0.0
,
0
,
False
,
False
,
0.0
);
procedure
Allocate
(
T
:
out
My_Type
)
is
procedure
Allocate
(
T
:
out
My_Type
)
is
begin
begin
T
:=
new
Data
(
Index_Type
'last);
T
:=
new
Data
(
Index_Type
'last);
T.R := Zero;
T.R := Zero;
for I in 1 .. T.A'
last
loop
for I in 1 .. T.A'
last
loop
N
:=
1
;
N
:=
1
;
end
loop
;
end
loop
;
end
;
end
;
end
Opt13_Pkg
;
end
Opt13_Pkg
;
gcc/testsuite/gnat.dg/opt13_pkg.ads
View file @
e66d38fe
package
Opt13_Pkg
is
package
Opt13_Pkg
is
N
:
Natural
:=
0
;
N
:
Natural
:=
0
;
type
My_Type
is
private
;
type
My_Type
is
private
;
procedure
Allocate
(
T
:
out
My_Type
);
procedure
Allocate
(
T
:
out
My_Type
);
private
private
type
Data
;
type
Data
;
type
My_Type
is
access
Data
;
type
My_Type
is
access
Data
;
end
Opt13_Pkg
;
end
Opt13_Pkg
;
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