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

Subversion Repositories openrisc

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

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

-- { dg-do compile }
-- { dg-options "-O2 -fdump-tree-optimized" }
 
function Volatile6 return Integer is
 
  type Vol is new Integer;
  pragma Volatile (Vol);
 
  V : Vol := 0;
 
begin
  for J in 1 .. 10 loop
     V := V + 1;
  end loop;
 
  return Integer (V);
end;
 
-- { dg-final { scan-tree-dump "goto" "optimized" } }
-- { dg-final { cleanup-tree-dump "optimized" } }
 

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.