Debian Codegraph @

gcc/testsuite/gnat.dg/put_image1.adb

raw
1 -- { dg-do run }
2 -- { dg-options "-gnat2022" }
3
4 with Ada.Text_IO; use Ada.Text_IO;
5
6 procedure Put_Image1 is
7
8 type Client_ID_Part is range 0 .. 2**32 - 1 with Size => 32;
9
10 type Client_ID is array (1 .. 2) of Client_ID_Part;
11
12 A : Client_ID := (1479222903, 3163714999);
13
14 begin
15 Put_Line (A'Image);
16 -- { dg-output ".* 1479222903, 3163714999.*\n" }
17 Put_Line (A (1)'Image);
18 -- { dg-output " 1479222903.*\n" }
19 Put_Line (A (2)'Image);
20 -- { dg-output " 3163714999.*\n" }
21 end;