view gcc/testsuite/gnat.dg/protected_null.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 84e7813d76e9
children
line wrap: on
line source

--  { dg-do compile }

procedure Proc is
   protected Po is
      procedure P is null;  --  { dg-error " protected operation cannot be a null procedure" }
   end Po;
   protected body Po is
      procedure P is
      begin
         null;
      end P;
   end Po;
begin
   null;
end;