aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/pure_function3a.adb
blob: 879c6bc2b6ceaeecab6cf91371d12cc0268a341c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- { 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" } }