Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/boolean_expr2.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 | 04ced10e8804 |
children |
line wrap: on
line source
-- { dg-do run } procedure Boolean_Expr2 is function Ident_Bool (B : Boolean) return Boolean is begin return B; end; begin if Boolean'Succ (Ident_Bool(False)) /= True then raise Program_Error; end if; if Boolean'Pred (Ident_Bool(True)) /= False then raise Program_Error; end if; end;