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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [volatile3.adb] - Blame information for rev 774

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

Line No. Rev Author Line
1 696 jeremybenn
-- { dg-do compile }
2
-- { dg-options "-O2" }
3
 
4
procedure volatile3 is
5
 
6
   v1 : Integer := 0;
7
   v2 : Integer := 0;
8
   pragma Volatile (v1);
9
   pragma Volatile (v2);
10
begin
11
   if v1 /= v2 then
12
      raise Program_Error;
13
   end if;
14
end;
15
 
16
-- { dg-final { scan-assembler "__gnat_rcheck" } }

powered by: WebSVN 2.1.0

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