repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
volatile2.adb
blob
57df26e7adf603666f939c68e42339895fe3ace8
1
-- { dg-do compile }
2
-- { dg-options "-gnatws" }
3
4
package body
volatile2
is
5
6
procedure
Copy
is
7
R
:
Result
;
8
M
:
Integer
;
9
subtype
Get_Data
is
Command_Data
(
Get
,
R
.
Data
'Last
);
10
begin
11
declare
12
G
:
Get_Data
;
13
for
G
'Address
use
M
'Address
;
14
begin
15
for
I
in
1
..
R
.
Data
'Last
loop
16
G
.
Data
(
I
) := (
Time
=>
R
.
Data
(
I
).
Time
);
17
end loop
;
18
end
;
19
end
;
20
21
end
volatile2
;
22