match: Fix comment for `X != 0 ? X + ~0 : 0` transformation
[official-gcc.git] / gcc / testsuite / gnat.dg / debug2.adb
blobf962243d6c3913554f85bf75535a93c97abf9cdc
1 -- { dg-do compile }
2 -- { dg-options "-g" }
4 with Debug2_Pkg; use Debug2_Pkg;
6 package body Debug2 is
8 procedure Proc is
10 function F return String_List_Ptr is
11 begin
12 return new String_List'(Singleton);
13 end;
15 A : String_List_Ptr := F;
17 begin
18 null;
19 end;
21 function Get return Integer is
22 begin
23 return 0;
24 end;
26 Failed : exception;
28 A: String_Ptr;
30 begin
32 declare
33 Server_Args : Integer;
34 begin
35 Server_Args := Get;
36 exception
37 when X : Failed => A := To_Heap;
38 end;
40 end Debug2;