view gcc/testsuite/gnat.dg/test_unknown_discrs.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 04ced10e8804
children
line wrap: on
line source

--  { dg-do compile }

procedure Test_Unknown_Discrs is
   
   package Display is

      type Component_Id (<>) is limited private;

      Deferred_Const : constant Component_Id;
   
   private
      
      type Component_Id is (Clock);

      type Rec1 is record
         C : Component_Id := Deferred_Const;
      end record;

      Priv_Cid_Object : Component_Id := Component_Id'First;

      type Rec2 is record
         C : Component_Id := Priv_Cid_Object;
      end record;

      Deferred_Const : constant Component_Id := Priv_Cid_Object;
   
   end Display;

begin
   null;
end Test_Unknown_Discrs;