PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gnat.dg / discr23.adb
blob1d1e695e9d905b8161889fb58716f20a392cdaa9
1 -- { dg-do compile }
3 with Discr23_Pkg; use Discr23_Pkg;
5 package body Discr23 is
7 N : constant Text := Get;
9 function Try (A : in Text) return Text is
10 begin
11 return A;
12 exception
13 when others => return N;
14 end;
16 procedure Dummy is begin null; end;
18 end Discr23;