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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [warn2.adb] - Rev 700

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

--  { dg-do compile }
 
with Unchecked_Conversion;
procedure warn2 is
   type R1 is record X : Integer; end record;
   type R2 is record X, Y : Integer; end record;
   pragma Warnings
     (Off, "types for unchecked conversion have different sizes");
   function F is new Unchecked_Conversion (R1, R2);
   pragma Warnings
     (On, "types for unchecked conversion have different sizes");
begin
   null;
end warn2;
 

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

powered by: WebSVN 2.1.0

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