projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove unused files
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
gnat.dg
/
hyper_flat.adb
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;