content stringlengths 23 1.05M |
|---|
-- { dg-do compile }
package Pack9 is
subtype Zero is Natural range 0 .. 0;
type Rec (D : Boolean) is record
case D is
when True => Z : Zero;
when False => null;
end case;
end record;
pragma Pack (Rec);
end Pack9;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package Control is
procedure Put_Line(S : String);
function Get_Line return String;
procedure Toggle_LedR;
procedure Toggle_LedL;
procedure Off_LedR;
procedure Off_LedL;
end Control;
|
package body Account.Vector is
procedure Add(Item: in out Account_Stack; C: in Default_Account.Instance) is
begin
Item.Append(C);
end Add;
procedure Delete(Item: in out Account_Stack; C: in Default_Account.Instance) is
begin
Item.Delete(Item.Find_Index(C));
end Delete;
pro... |
------------------------------------------------------------------------------
-- --
-- tiled-code-gen --
-- --
-- ... |
-- see OpenUxAS\src\Communications\ZeroMqFabric.h
with UxAS.Comms.Transport.ZeroMQ_Socket_Configurations; use UxAS.Comms.Transport.ZeroMQ_Socket_Configurations;
with ZMQ.Sockets; use ZMQ.Sockets;
with ZMQ.Contexts; use ZMQ.Contexts;
package UxAS.Comms.Transport.ZeroMQ_Fabric is
type ZMQ_Fabric (<>) is tagged lim... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp_Shared_Instance_Test_Fixture is
----------------------------------------------------------------------------
Lock_Count_Var : Natural := 0;
Unlock_Count_Var : Natural := 0;
... |
-- --
-- package Stack_Storage Copyright (c) Dmitry A. Kazakov --
-- Interface Luebeck --
-- Winter, 2003 --
-- ... |
with Helper; use Helper;
with Ada.Text_IO; use Ada.Text_IO;
package body Interpolations_Lineaires is
-- Interpole toutes les courbes d'une liste
procedure Interpolation_Lineaire(
Courbes : Liste_Courbes.Liste;
Segments : in out Liste;
Nombre_Points : Positive;
Interpoler_Droites... |
package ADMBase.Runge is
procedure set_time_step;
procedure set_time_step_min;
procedure rk_step
(ct : Real;
cw : Real;
params : SlaveParams);
procedure beg_runge_kutta
(params : SlaveParams);
procedure end_runge_kutta
(params : SlaveParams);
end ADMBase.Runge;
|
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
package GL.Objects.Vertex_Arrays is
type Vertex_Array_Object is new GL_Object with private;
procedure Bind (Object : Vertex_Array_Object);
procedure Draw_Arrays (Mode : Connection_Mode; Firs... |
-- Generated at 2016-03-04 22:16:27 +0000 by Natools.Static_Hash_Maps
-- from src/simple_webapps-append_servers-maps.sx
with Simple_Webapps.Commands.Append_Servers.Endpoint_Hash;
with Simple_Webapps.Commands.Append_Servers.Server_Hash;
package body Simple_Webapps.Commands.Append_Servers is
function To_Endpoint_... |
-- THIS GENERIC PROCEDURE IS INTENDED FOR USE IN CONJUNCTION WITH THE
-- ACVC CHAPTER 13 C TESTS. IT IS INSTANTIATED FOR A TYPE WHOSE
-- REPRESENTATION IS TO BE CHECKED, AND THEN THE PROCEDURE REP_CHECK
-- IS CALLED WITH TWO ARGUMENTS, THE FIRST IS A VALUE OF THE TYPE TO
-- BE CHECKED, AND THE SECOND IS A STRING DE... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- Ada Labs --
-- --
-- Copyright (C) 2008-2009, AdaCore --
-- ... |
with
AdaM.Block,
AdaM.Factory;
package body AdaM.exception_Handler
is
-- Storage Pool
--
record_Version : constant := 1;
max_Exceptions : constant := 5_000;
package Pool is new AdaM.Factory.Pools (".adam-store",
"exception... |
-- { dg-do compile }
package Aggr6 is
type B15_T is mod 2 ** 15;
for B15_T'Size use 15;
for B15_T'Alignment use 1;
type B17_T is mod 2 ** 17;
for B17_T'Size use 17;
for B17_T'Alignment use 1;
type Rec_T is record
A : B17_T;
B : B15_T;
end record;
for Rec_T use record
A at 0 range 0 .. ... |
-----------------------------------------------------------------------
-- mat-frames-targets - Representation of stack frames
-- Copyright (C) 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
-- Copyright 2017-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (a... |
-- { dg-do compile }
-- { dg-options "-g" }
with Ada.Unchecked_Conversion;
with System;
package body Debug3 is
type Rec is record
I : Integer;
end record;
for Rec'Alignment use 1;
type Ptr is access Rec;
function To_Ptr is new Ada.Unchecked_Conversion(System.Address, Ptr);
procedure Proc is
... |
-----------------------------------------------------------------------
-- Servlet tests - Servlet Tests Framework
-- Copyright (C) 2011, 2012, 2013, 2015, 2017, 2018, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");... |
with Ada.Finalization;
with Ada.Streams;
with Google.Protobuf.Descriptor;
with League.String_Vectors;
with PB_Support.Universal_String_Vectors;
package Google.Protobuf.Compiler.Plugin is
type Code_Generator_Request_Vector is tagged private
with Variable_Indexing => Get_Code_Generator_Request_Variable_Referenc... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+flacada@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam ... |
with
cached_Trigonometry;
generic
package any_math.any_fast_Trigonometry
is
package Default is new cached_Trigonometry (Float_type => any_Math.Real,
slot_Count => 10_000);
end any_math.any_fast_Trigonometry;
|
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_IO;
procedure Main is
package FIO is new Ada.Text_IO.Float_IO (Float);
type Point is record
X, Y : Float;
end record;
function "-" (Left, Right : Point) return Point is
begin
return (Left.X - Right.X, Left.Y - Right.Y);
end "-";
... |
package body Prot3_Pkg is
protected body Prot is
function Fn (J : Short_Integer) return Rec
is
begin
return (V1 => J * J,
V2 => J);
end;
procedure Foo (J : Short_Integer) is
begin
Val := Fn (J);
end;
end Prot;
end Prot3_Pkg;
|
-------------------------------------------------------------------------
-- GL.Frustum
--
-- Copyright (c) Gautier de Montmollin/Rod Kay 2001 .. 2007
-- CH - 8810 Horgen
-- SWITZERLAND
--
-- Permission granted to:
-- 1/ use this library, without any warranty, for any purpose;
-- 2/ modify this... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Interfaces.C;
with Interfaces.C.Strings;
with Ada.Exceptions;
with Ada.Exceptions.Traceback;
with Ada.Finalization;
with GNAT.Traceback;
with GNAT.Traceback.Symbolic;
with GDNative.Tokenizer;
with GDNative.Context;
package body GDNative.Exceptions is
package IC renames Interfaces.C;
package ICS renames I... |
-----------------------------------------------------------------------
-- util-streams -- Stream utilities
-- Copyright (C) 2010, 2016, 2018, 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
with System.Val_Enum;
with System.Value_Errors;
package body System.Val_Bool is
function Value_Boolean (Str : String) return Boolean is
First : Positive;
Last : Natural;
begin
Val_Enum.Trim (Str, First, Last);
if First <= Last then
declare
S : String := Str (First .. ... |
-----------------------------------------------------------------------
-- awa-counters-components -- Counter UI component
-- Copyright (C) 2015, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
-- Copyright (c) 2017 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
private package LSP.Servers.Handlers is
pragma Preelaborate;
procedure DidChangeConfiguration
(Stream : access Ada.Streams... |
function Generic_Max (List : Items_Array) return Item is
Result : Item := List (List'First);
begin
for Index in List'First + 1..List'Last loop
Result := Item'Max (Result, List (Index));
end loop;
return Result;
end Generic_Max;
|
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.NVIC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- IPR_IPR_N array element
... |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure min4 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.Stre... |
pragma License (Unrestricted);
-- implementation unit
private package Ada.Containers.Copy_On_Write is
pragma Preelaborate;
type Container;
type Container_Access is access all Container;
for Container_Access'Storage_Size use 0;
Data_Size : constant := Standard'Address_Size;
type Data is limited re... |
with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Containers.Unbounded_Synchronized_Queues;
with Ada.Containers.Vectors;
procedure Day15 is
subtype Input_String is String (1 .. 32);
type ... |
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Soft_Links;
with System.Synchronous_Control;
with System.Termination;
package body System.Tasking.Stages is
package Task_Id_Conv is
new Address_To_Named_Access_Conversions (
Tasks.Task_Record,
Tasks.T... |
with Ada.Text_IO;use Ada.Text_IO
procedure Hello is
begin
Put_Line("hello");
end Hello;
|
-----------------------------------------------------------------------
-- gen-commands-info -- Collect and give information about the project
-- Copyright (C) 2011, 2012, 2013, 2014 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "... |
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.Text_IO;
with Ada.Strings.Unbound... |
with Numerics, Ada.Text_IO, Auto_Differentiation.Integrator;
use Numerics, Ada.Text_IO, Auto_Differentiation.Integrator;
procedure Auto_Differentiation.Dynamics is
use Real_IO, Int_IO;
-- Set Up Parameters -----------------
Control : Control_Type := (N => 2, Dt => 1.0, Eps => 1.0e-10, Err => 1.0, K => 9);
... |
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
with ada.text_io; use ada.text_io;
procedure binary is
bit : array (0..1) of character := ('0','1');
function bin_image (n : Natural) return string is
(if n < 2 then (1 => bit (n)) else bin_image (n / 2) & bit (n mod 2));
test_values : array (1..3) of Natural := (5,50,9000);
begin
for test of test_values lo... |
private package GID.Buffering is
-- Attach a buffer to a stream.
procedure Attach_Stream(
b : out Input_buffer;
stm : in Stream_Access
);
function Is_stream_attached(b: Input_buffer) return Boolean;
-- From the first call to Get_Byte, subsequent bytes must be read
-- throug... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with System;
with SoE;
with Ada.Text_IO, Ada.Integer_Text_IO;
with Ada.Exceptions;
procedure Main is
use Ada.Text_IO, Ada.Integer_Text_IO;
pragma Priority (System.Priority'First);
User_Limit : Integer;
begin
-- process Odd is activated at this point
--+
-- the main unit may take the ran... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- Antonio M. F.... |
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2011, Adrian-Ken Rueegsegger
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that... |
with MPFR.Generic_FR;
with MPC.Root_C;
generic
with package Real_FR is new MPFR.Generic_FR (others => <>);
with package Imaginary_FR is new MPFR.Generic_FR (others => <>);
package MPC.Generic_C is
pragma Preelaborate;
function Rounding return MPC.Rounding;
pragma Inline (Rounding);
type MP_Complex is
new ... |
-- { dg-do run }
procedure Volatile4 is
type My_Int is new Integer;
pragma Volatile (My_Int);
type Rec is record
I : My_Int;
end record;
function F (R : Rec) return Rec is
begin
return R;
end;
R : Rec := (I => 0);
begin
R := F (R);
if R.I /= 0 then
raise Program_Error;
end if;
en... |
-- C47009A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 - 2019 Joakim Strandberg <joakim@mequinox.se>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.ap... |
-- C55B06B.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
-- CD1C04A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Text_IO, Ada.Integer_Text_IO;
use Text_IO, Ada.Integer_Text_IO;
procedure Sum is
First, Second : Integer;
begin
Put( "Enter two integers: " );
Get( First );
Get( Second );
Put( "The sum is: " );
Put( First + Second );
New_Line;
end Sum;
|
type Int_Array is array(Integer range <>) of Integer;
array : Int_Array := (1,2,3,4,5,6,7,8,9,10);
Sum : Integer := 0;
for I in array'range loop
Sum := Sum + array(I);
end loop;
|
-- =============================================================================
-- Package body AVR.TIMERS.SCHEDULER
-- =============================================================================
package body AVR.TIMERS.SCHEDULER is
procedure Initialize_CTC_Timer
(Timer : TIMERS.Timer_Type;
Priorit... |
with Ada.Characters.Latin_1;
with Ada.Command_Line;
with Ada.Text_IO;
with YAML;
procedure test_parser_error is
Verbose : Boolean := False;
procedure Put (Item : in String) is
begin
if Verbose then
Ada.Text_IO.Put (Item);
end if;
end Put;
procedure New_Line is
begin
if Verbose then
Ada.Text_IO.New_Lin... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
procedure Test is
I : INTEGER;
begin
I := 0;
if J <= 15 then
I := 0;
end if;
End Test;
|
with Ada.Streams; use Ada.Streams;
with Ada.Finalization;
package Bit_Streams is
type Bit is range 0..1;
type Bit_Array is array (Positive range <>) of Bit;
type Bit_Stream (Channel : not null access Root_Stream_Type'Class) is limited private;
procedure Read (Stream : in out Bit_Stream; Data : out Bit_Arr... |
--------------------------------------------------------------------------------
-- Copyright (c) 2013, Felix Krause <contact@flyx.org>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this pe... |
package body Kafka.Topic is
function Create_Topic_Handle(Handle : Handle_Type;
Topic : String;
Config : Topic_Config_Type) return Topic_Type is
C_Topic : chars_ptr := New_String(Topic);
Topic_Handle : Topic_Type;
begin
... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types.Colors;
private with GL.Low_Level;
private with GL.Toggles;
package GL.Fixed.Lighting is
pragma Preelaborate;
type Color_Control is (Single_Color, Separate_Specular_Color);
typ... |
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr>
-- MIT license. Please refer to the LICENSE file.
with Ada.Text_IO;
with Ada.Tags;
-- "With" the shared output sink instance access point package.
with Apsepp.Output;
-- "With" the generic instance creator package (useful to instantiate the
-- Creator child pac... |
with Numerics;
use Numerics;
package body Chebyshev is
function CGL_Transform (F : in Real_Vector) return Real_Vector is
N : constant Nat := F'Length;
X : constant Real_Vector := Chebyshev_Gauss_Lobatto (N, -1.0, 1.0);
G : Real_Vector := (2.0 / Real (N - 1)) * F;
T : Real_Matr... |
--Copyright (c) 2019 Alex Tsantilis under the MIT License
package body IBM_8b_10b_Encoder is
type Encoder_Entry is
record
RD_Neg_Val: Ten_Bits;
RD_Pos_Val: Ten_Bits;
RD_Changes: Boolean;
end record;
type Decoder_Entry is
record
Key: Ten_Bits := 0;
Va... |
with Text_IO; use Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
with Extended_Real;
with Extended_Real.Elementary_Functions;
with Extended_Real.IO;
procedure e_real_demo_1 is
type Real is digits 15;
package mth is new Ada.Numerics.Generic_Elementary_Functions(Real);
use mth;
package ext... |
-- Score PIXAL le 07/10/2020 à 17:18 : 100%
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Lire et écrire un tableau d'entiers.
procedure Tableau_IO is
Capacite: constant Integer := 10; -- Cette taille est arbitraire
type T_TableauBrut is array (1..Capacite) of ... |
-- Warning: puts huge array on stack. You get segmentation fault if stack
-- space is insufficient. To get more stack space in bash shell, type:
-- ulimit -s 1024M
-- ulimit -s unlimited
-- at the prompt. Type ulimit -a for summary of limits.
-- In c shell type
-- limit stacksize 1024M
-- li... |
with SAM.Device;
with SAM.GPIO;
with SAM.SPI;
with FT801;
package Screen_Settings is
Screen_Width : constant := 480;
Screen_Height : constant := 272;
Header_Height : constant := 50;
Button_Width : constant := 80;
Image_Height : constant := Screen_Height - Header_Height;
Image_Width : co... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
package body Yaml.Transformator.Annotation.For_Loop is
use type Events.Context.Cursor;
procedure Put (Object : in out Instance; E : Event) is
begin
Object.State.all (Object, E);
end... |
package HTTP.Request with SPARK_Mode => On
is
package Sliced is
type Header is record
Key : Indexes;
Val : Indexes;
end record;
subtype Header_Index is Natural range 1 .. 20;
type Header_List is array (Header_Index) of Header;
type Request_Line is record
Kind : Indexes; -- Get, Post, ec... |
-- Copyright (c) 2020 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
function JWS.To_Base_64_URL
(Data : League.Stream_Element_Vectors.Stream_Element_Vector)
return League.Strings.Universal_String;... |
-- implementation of package Bubble
-- see bubble.ads for a specification
-- which gives a brief overview of the package
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
package body Bubble is
protected body State is
procedure Set_All(a, b, c, d : Integer) is
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with MSPGD.Board; use MSPGD.Board;
procedure Main is
pragma Preelaborate;
begin
Init;
loop
if BUTTON.Is_Set then LED_GREEN.Set; else LED_GREEN.Clear; end if;
end loop;
end Main;
|
with Ada.IO_Exceptions;
package body GID.Buffering is
procedure Fill_Buffer(b: in out Input_buffer);
-- ^ Spec here to avoid warning by 'Get_Byte' below (GNAT 2009):
-- warning: call to subprogram with no separate spec prevents inlining
procedure Fill_Buffer(b: in out Input_buffer)
is
--
... |
with Ada.Unchecked_Conversion;
package body System.Stack is
pragma Suppress (All_Checks);
-- implementation
procedure Get (
TEB : C.winnt.struct_TEB_ptr := C.winnt.NtCurrentTeb;
Top, Bottom : out Address)
is
function Cast is
new Ada.Unchecked_Conversion (
C.winnt.st... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/L... |
pragma Ada_2012;
with Tc;
package body Suits is
T : aliased Tc.Test_Case;
----------
-- Suit --
----------
S : aliased AUnit.Test_Suites.Test_Suite;
function Suit return AUnit.Test_Suites.Access_Test_Suite is
begin
S.Add_Test (T'Access);
return S'Access;
end Suit;
end Suits;
|
-----------------------------------------------------------------------
-- awa-storages-services-tests -- Unit tests for storage service
-- Copyright (C) 2012, 2013 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
with Ada.Numerics.Discrete_Random;
with Ada.Unchecked_Conversion;
with Ada.Command_Line;
with Interfaces.C;
with HW.Time;
with HW.Debug;
with HW.PCI.Dev;
with HW.MMIO_Range;
with HW.GFX.GMA;
with HW.GFX.GMA.Config;
with HW.GFX.GMA.Display_Probing;
package body HW.GFX.GMA.GFX_Test
is
pragma Disable_Atomic_Synchroni... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
pragma License (Unrestricted);
package System.Machine_Code is
pragma Pure;
type Asm_Output_Operand is private;
No_Output_Operands : constant Asm_Output_Operand;
type Asm_Output_Operand_List is
array (Integer range <>) of Asm_Output_Operand;
type Asm_Input_Operand is private;
No_Input_Operands ... |
------------------------------------------------------------------------------
-- --
-- WAVEFILES --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-jobs-beans -- AWA Jobs Ada Beans
-- Copyright (C) 2012, 2013, 2015 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this f... |
-----------------------------------------------------------------------
-- asf-navigations-mappers -- Read XML navigation files
-- Copyright (C) 2010, 2011 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Identifiers;
with Program.Elements.Definitions;
with Progr... |
-- The aim of this test is to check that Ada types appear in the proper
-- context in the debug info.
--
-- Checking this directly would be really tedious just scanning for assembly
-- lines, so instead we rely on DWARFv4's .debug_types sections, which must be
-- created only for global-scope types. Checking the n... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Overflow is
generic
type T is Range <>;
Name_Of_T: String;
procedure Print_Bounds; -- first instantiate this with T, Name
-- then call the instantiation
procedure Print_Bounds is
begin
Put_Line(" " & Name_Of_T & " ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.