PR ipa/83051
[official-gcc.git] / gcc / testsuite / gnat.dg / opt29.adb
blob64f2baef3d08e6e72a95b25a6a4c7297b3eb7937
1 -- { dg-do compile }
2 -- { dg-options "-O" }
4 package body Opt29 is
6 procedure Proc (T : Rec) is
7 begin
8 if Derived2 (T.F2.all).Id = T.F1.Id then
9 raise Program_Error;
10 end if;
11 end;
13 end Opt29;