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/] [deferred_const1.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 Text_IO; use Text_IO;
4
 
5
procedure Deferred_Const1 is
6
  I : Integer := 16#20_3A_2D_28#;
7
  S : constant string(1..4);
8
  for S'address use I'address; -- { dg-warning "constant overlays a variable" } 
9
  pragma Import (Ada, S);
10
begin
11
  Put_Line (S);
12
end;

powered by: WebSVN 2.1.0

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