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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
alignment13.adb
blob
dd0b25425f0c121de5414a07473fec4579750ff4
1
-- { dg-do run }
2
-- { dg-options "-gnatws" }
3
4
procedure
Alignment13
is
5
6
type
Rec
is record
7
I1
:
aliased
Short_Integer
;
8
I2
:
Integer
;
9
end record
;
10
11
for
Rec
use record
12
I1
at
0
range
0
..
15
;
13
end record
;
14
15
R
:
Rec
;
16
17
begin
18
if
R
.
I2
'Bit_Position
/=
32
then
19
raise
Program_Error
;
20
end if
;
21
end
;