blob: 879c6bc2b6ceaeecab6cf91371d12cc0268a341c [file] [log] [blame]
-- { dg-do compile }
-- { dg-options "-O -gnatws -fdump-tree-optimized" }
with Pure_Function3_Pkg; use Pure_Function3_Pkg;
procedure Pure_Function3a is
V : T;
begin
if F (V) = 1 then
raise Program_Error;
elsif F (V) = 2 then
raise Program_Error;
end if;
end;
-- { dg-final { scan-tree-dump-times "pure_function3_pkg.f" 1 "optimized" } }