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
tree-optimization/113385 - wrong loop father with early exit vectorization
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
spark2.adb
blob
cb6c3b842e2109ea828c91a9d25f4198a6747a60
1
-- { dg-do compile }
2
3
package body
SPARK2
with
SPARK_Mode
is
4
function
Factorial
(
N
:
Natural
)
return
Natural
is
5
begin
6
if
N
=
0
then
7
return
1
;
8
else
9
return
N
*
Factorial
(
N
-
1
);
10
end if
;
11
end
Factorial
;
12
end
SPARK2
;