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

Subversion Repositories openrisc

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

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

-- { dg-do compile }
-- { dg-options "-gnatws" }
 
with System; use System;
 
procedure Trampoline1 is
 
  A : Integer;
 
  function F (I : Integer) return Integer is
  begin
    return A + I;
  end F;
 
  CA : System.Address := F'Code_Address;
 
begin
  if CA = System.Null_Address then
    raise Program_Error;
  end if;
end;
 
-- { dg-final { scan-assembler-not "GNU-stack.*x" } }
 

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.