Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / lto7.adb
blobcb81495a9b1f3fbfd3f0ac52a3db3ea838b04ca8
1 -- { dg-do run }
2 -- { dg-options "-flto" { target lto } }
4 with Lto7_Pkg; use Lto7_Pkg;
6 procedure Lto7 is
7 view2 : access Iface_2'Class;
8 obj : aliased DT := (m_name => "Abdu");
9 begin
10 view2 := Iface_2'Class(obj)'Access;
11 view2.all.op2;
12 end;