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/] [aliasing1.adb] - Rev 304

Compare with Previous | Blame | View Log

-- { dg-do compile }
-- { dg-options "-O2 -gnatp -fdump-tree-optimized" }
 
-- The raise statement must be optimized away by
-- virtue of DECL_NONADDRESSABLE_P set on R.I.
 
package body Aliasing1 is
 
  function F (P : Ptr) return Integer is
  begin
    R.I := 0;
    P.all := 1;
    if R.I /= 0 then
      raise Program_Error;
    end if;
    return 0;
  end;
 
end Aliasing1;
 
-- { dg-final { scan-tree-dump-not "__gnat_rcheck" "optimized" } }
-- { dg-final { cleanup-tree-dump "optimized" } }
 

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.