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
PR debug/66535
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
hyper_flat.adb
blob
6842edbf52ad48d7d9ab28b490e7bc73a77bd32d
1
-- { dg-do run }
2
-- { dg-options "-gnatp" }
3
4
procedure
Hyper_Flat
is
5
6
type
Unsigned
is mod
2
**
32
;
7
x
:
Integer
:=
0
;
8
pragma
Volatile
(
X
);
9
10
S
:
constant
String
:= (
1
..
X
-
3
=>
'A'
);
11
-- Hyper-flat null string
12
13
begin
14
if
Unsigned
'(S'Length) /= 0 then
15
raise Program_Error;
16
end if;
17
end;