URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do run }
|
-- { dg-do run }
|
|
|
procedure Array9 is
|
procedure Array9 is
|
|
|
V1 : String(1..10) := "1234567890";
|
V1 : String(1..10) := "1234567890";
|
V2 : String(1..-1) := "";
|
V2 : String(1..-1) := "";
|
|
|
procedure Compare (S : String) is
|
procedure Compare (S : String) is
|
begin
|
begin
|
if S'Size /= 8*S'Length then
|
if S'Size /= 8*S'Length then
|
raise Program_Error;
|
raise Program_Error;
|
end if;
|
end if;
|
end;
|
end;
|
|
|
begin
|
begin
|
Compare ("");
|
Compare ("");
|
Compare ("1234");
|
Compare ("1234");
|
Compare (V1);
|
Compare (V1);
|
Compare (V2);
|
Compare (V2);
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.