gcc/testsuite/gnat.dg/tag2_pkg.ads
raw| 1 | package Tag2_Pkg is |
| 2 | type Monitor_Interface is interface; |
| 3 | |
| 4 | type Root is abstract tagged null record; |
| 5 | |
| 6 | type Monitor_Type is abstract new Root |
| 7 | and Monitor_Interface with null record; |
| 8 | |
| 9 | type Synchronous_Monitor (Size : Positive) is new Monitor_Type with |
| 10 | record |
| 11 | Queue : String (1 .. Size); |
| 12 | end record; |
| 13 | |
| 14 | type Virtual_Integer_Register_Refresher (Size : Positive) is |
| 15 | new Synchronous_Monitor (Size) with null record; |
| 16 | end; |