ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gnat.dg/inline19.adb

18 lines
296 B
Ada

-- { dg-do compile }
-- { dg-options "-O2" }
package body Inline19 is
S : String := "Hello";
protected body P is
function F return String is
begin
return Result : constant String := S do
null;
end return;
end F;
end P;
end Inline19;