Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / opt94.adb
blob547bef3a918552cd799776a98c592c47f98fc684
1 -- { dg-do compile }
2 -- { dg-options "-O -gnatn -fdump-tree-optimized" }
4 with Opt94_Pkg; use Opt94_Pkg;
6 function Opt94 (S : String) return Integer is
7 A : constant String := Get;
9 begin
10 if Valid_Result (A) then
11 return Result (A);
12 else
13 return -1;
14 end if;
15 end;
17 -- { dg-final { scan-tree-dump-times "worker" 1 "optimized" } }