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 GNAT.Compiler_Version;
|
with GNAT.Compiler_Version;
|
procedure Test_Version is
|
procedure Test_Version is
|
package Vsn is new GNAT.Compiler_Version;
|
package Vsn is new GNAT.Compiler_Version;
|
use Vsn;
|
use Vsn;
|
X : constant String := Version;
|
X : constant String := Version;
|
begin
|
begin
|
if X'Length = 78 then
|
if X'Length = 78 then
|
-- 78 = Ver_Len_Max + Ver_Prefix'Length
|
-- 78 = Ver_Len_Max + Ver_Prefix'Length
|
-- actual version should be shorter than this
|
-- actual version should be shorter than this
|
raise Program_Error;
|
raise Program_Error;
|
end if;
|
end if;
|
end Test_Version;
|
end Test_Version;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.