URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do run }
|
-- { dg-do run }
|
|
|
with Text_IO; use Text_IO;
|
with Text_IO; use Text_IO;
|
with GNAT.SPITBOL.Patterns; use GNAT.SPITBOL.Patterns;
|
with GNAT.SPITBOL.Patterns; use GNAT.SPITBOL.Patterns;
|
procedure Spipaterr is
|
procedure Spipaterr is
|
X : String := "ABCDE";
|
X : String := "ABCDE";
|
Y : Pattern := Len (1) & X (2 .. 2);
|
Y : Pattern := Len (1) & X (2 .. 2);
|
begin
|
begin
|
if Match ("XB", Y) then
|
if Match ("XB", Y) then
|
null;
|
null;
|
else
|
else
|
raise Program_Error;
|
raise Program_Error;
|
end if;
|
end if;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.