OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [test_version.adb] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do run }
2
with GNAT.Compiler_Version;
3
procedure Test_Version is
4
   package Vsn is new GNAT.Compiler_Version;
5
   use Vsn;
6
   X : constant String := Version;
7
begin
8
   if X'Length = 78 then
9
      -- 78 = Ver_Len_Max + Ver_Prefix'Length
10
      -- actual version should be shorter than this
11
      raise Program_Error;
12
   end if;
13
end Test_Version;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.