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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
-- { dg-options "-gnatws" }
3
 
4
with System; use System;
5
 
6
procedure Trampoline1 is
7
 
8
  A : Integer;
9
 
10
  function F (I : Integer) return Integer is
11
  begin
12
    return A + I;
13
  end F;
14
 
15
  CA : System.Address := F'Code_Address;
16
 
17
begin
18
  if CA = System.Null_Address then
19
    raise Program_Error;
20
  end if;
21
end;
22
 
23
-- { dg-final { scan-assembler-not "GNU-stack.*x" } }

powered by: WebSVN 2.1.0

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