view gcc/testsuite/gnat.dg/volatile1.ads @ 140:4e440907fcbf

copy CbC goto flang in cfgexpand remove some CbC unnecessary code
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Nov 2018 00:24:45 +0900
parents 04ced10e8804
children
line wrap: on
line source

package volatile1 is

   type Command is (Nothing, Get);

   type Data is
      record
         Time : Duration;
      end record;

   type Data_Array is array (Integer range <>) of Data;

   type Command_Data (Kind : Command; Length : Integer) is
      record
         case Kind is
            when Nothing =>
               null;
            when Get =>
               Data : Data_Array (1 .. Length);
         end case;
      end record;

end;