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
/
modular6.adb
blob
f0f1c80c62f2a2347d352b77be0d8a503c0864f5
1
-- { dg-do compile }
2
3
with
Ada
.
Text_IO
;
use
Ada
.
Text_IO
;
4
5
procedure
Modular6
is
6
Max
:
Integer
:=
0
;
7
8
type
Modulus
is mod
3
;
9
begin
10
Max
:=
30
;
11
12
for
N
in
1
..
Max
loop
13
Put_Line
(
"N: "
&
Integer
'Image
(
N
) &
" Modulus: "
&
Integer
'Image
(
Modulus
'Modulus
) &
" Mod:"
&
Modulus
'Image
(
Modulus
'Mod
(
N
)));
14
end loop
;
15
end
;