Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/spark2.adb @ 143:76e1cf5455ef
add cbc_gc test
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 19:24:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
-- { 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;