Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/discr8.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 compile } -- { dg-options "-gnatws" } package body Discr8 is procedure Make (C : out Local_T) is Tmp : Local_T (Tag_One); begin C := Tmp; end; package Iteration is type Message_T is record S : Local_T; end record; type Iterator_T is record S : Local_T; end record; type Access_Iterator_T is access Iterator_T; end Iteration; package body Iteration is procedure Construct (Iterator : in out Access_Iterator_T; Message : Message_T) is begin Iterator.S := Message.S; end; end Iteration; end Discr8;