Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/class_wide4_pkg2.ads @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
with Class_Wide4_Pkg; package Class_Wide4_Pkg2 is type Object is limited new Class_Wide4_Pkg.Conditional_Interface with record Val : Integer := 1234; end record; function Is_Valid (This : in Object) return Boolean is (This.Val = 1234); function Is_Supported_Data (This : in Object; Data : not null access Class_Wide4_Pkg.Data_Object'Class) return Boolean is (This.Val = 1234); procedure Do_Stuff (This : in out Object) is null; procedure Do_Stuff_Access (This : not null access Object) is null; end Class_Wide4_Pkg2;