repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix internal error on function call returning extension of limited interface
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
volatile3.adb
blob
bd0e96a27c6e06f1f1a3f3ce98f100ac46cf7ef2
1
-- { 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" } }