aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/overriding_ops.adb
blob: 5ffa8a9ae1b254b0636e94e7e7016202b5982457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- { dg-do compile }

package body overriding_ops is
   task body Light_Programmer is
   begin
      accept Set_Name (Name : Name_Type);
   end Light_Programmer;

   protected body Light is
      procedure Set_Name (Name : Name_Type) is
      begin
         L_Name := Name;
      end Set_Name;
   end Light;
end overriding_ops;