Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/prot3_pkg.adb @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
package body Prot3_Pkg is protected body Prot is function Fn (J : Short_Integer) return Rec is begin return (V1 => J * J, V2 => J); end; procedure Foo (J : Short_Integer) is begin Val := Fn (J); end; end Prot; end Prot3_Pkg;