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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
modular1.adb
blob
b9fcde95fd697e5875323f96329ccac446fffc92
1
-- { dg-do run }
2
3
with
Ada
.
Text_IO
;
4
procedure
Modular1
is
5
type
T1
is mod
9
;
6
package
T1_IO
is new
Ada
.
Text_IO
.
Modular_IO
(
T1
);
7
X
:
T1
:=
8
;
8
J1
:
constant
:=
5
;
9
begin for
J2
in
5
.
.5
loop
10
pragma
Assert
(
X
*(
2
**
J1
) =
X
*(
2
**
J2
));
11
if
X
*(
2
**
J1
) /=
X
*(
2
**
J2
)
then
12
raise
Program_Error
;
13
end if
;
14
end loop
;
15
end
Modular1
;