Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/subp_inst_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 | 1830386684a0 |
line wrap: on
line source
with Ada.Unchecked_Conversion; with System.Address_Image; package body Subp_Inst_Pkg is function Image (Val : T_Access) return String is function Convert is new Ada.Unchecked_Conversion (T_Access, System.Address); begin return System.Address_Image (Convert (Val)); end Image; function T_Image (Val : access T) return String is type T_Access is access all T; function Convert is new Ada.Unchecked_Conversion (T_Access, System.Address); begin return System.Address_Image (Convert (Val)); end T_Image; end Subp_Inst_Pkg;