Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gnat.dg
/
atomic7_1.adb
blob: 2cd2fd7b2f429b56ac65ee3595ef2e6d40f1c330 [
file
] [
log
] [
blame
]
--
{
dg
-
do
run
}
with
Atomic7_Pkg2
;
use
Atomic7_Pkg2
;
procedure
Atomic7_1
is
I
:
Integer
:=
Stamp
;
pragma
Atomic
(
I
);
J
:
Integer
:=
Stamp
;
begin
if
I
/=
1
then
raise
Program_Error
;
end
if
;
end
;