Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gnat.dg
/
spark2.adb
blob: cb6c3b842e2109ea828c91a9d25f4198a6747a60 [
file
] [
log
] [
blame
]
--
{
dg
-
do
compile
}
package
body SPARK2
with
SPARK_Mode
is
function
Factorial
(
N
:
Natural
)
return
Natural
is
begin
if
N
=
0
then
return
1
;
else
return
N
*
Factorial
(
N
-
1
);
end
if
;
end
Factorial
;
end
SPARK2
;