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/] [warn2.adb] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
--  { dg-do compile }
2
 
3
with Unchecked_Conversion;
4
procedure warn2 is
5
   type R1 is record X : Integer; end record;
6
   type R2 is record X, Y : Integer; end record;
7
   pragma Warnings
8
     (Off, "types for unchecked conversion have different sizes");
9
   function F is new Unchecked_Conversion (R1, R2);
10
   pragma Warnings
11
     (On, "types for unchecked conversion have different sizes");
12
begin
13
   null;
14
end warn2;

powered by: WebSVN 2.1.0

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