Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/volatile8.adb @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
-- { dg-do compile } -- { dg-options "-O2 -fdump-tree-optimized" } function Volatile8 return Integer is type Vol is new Integer; pragma Volatile (Vol); type A is array (1..4) of Vol; V : A := (others => 0); begin for J in 1 .. 10 loop V(1) := V(1) + 1; end loop; return Integer (V(1)); end; -- { dg-final { scan-tree-dump "goto" "optimized" } }