File: test_image_p.ads

package info (click to toggle)
gcc-arm-none-eabi 15%3A12.2.rel1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 959,712 kB
  • sloc: cpp: 3,275,382; ansic: 2,061,766; ada: 840,956; f90: 208,513; makefile: 76,132; asm: 73,433; xml: 50,448; exp: 34,146; sh: 32,436; objc: 15,637; fortran: 14,012; python: 11,991; pascal: 6,787; awk: 4,779; perl: 3,054; yacc: 338; ml: 285; lex: 201; haskell: 122
file content (23 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package test_image_p is
    type type1 is tagged private;
    type type3 is limited private;
    type type5 is tagged limited private;
    type a_type5_class is access all type5'Class;
    task type task_t (arg : access type3) is
        entry entry1;
    end task_t;
    function to_type1 (arg1 : in Integer) return type1;
private
  type array_t is array (Positive range <>) of type1;
  type array_t2 is array (1 .. 3) of Boolean;
  type type1 is tagged record
     f2 : array_t2;
  end record;
    type type3 is limited record
        the_task : aliased task_t (type3'Access);
        the_array : array_t (1 .. 10) := (others => to_type1 (-1));
    end record;
    type type5 is tagged limited record
        f3 : type3;
    end record;
end;