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/] [aliasing2.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 "-O2 -gnatp -fdump-tree-optimized" }
3
 
4
-- The raise statement must be optimized away by
5
-- virtue of TYPE_NONALIASED_COMPONENT set on A.
6
 
7
package body Aliasing2 is
8
 
9
  function F (P : Ptr) return Integer is
10
  begin
11
    A (1) := 0;
12
    P.all := 1;
13
    if A(1) /= 0 then
14
      raise Program_Error;
15
    end if;
16
    return 0;
17
  end;
18
 
19
end Aliasing2;
20
 
21
-- { dg-final { scan-tree-dump-not "__gnat_rcheck" "optimized" } }
22
-- { dg-final { cleanup-tree-dump "optimized" } }

powered by: WebSVN 2.1.0

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