file_text stringlengths 1 2.1M ⌀ | language stringclasses 416
values | file_name stringlengths 1 185 ⌀ |
|---|---|---|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | atree.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | atree.ads |
-- { dg-do compile }
package Attribute_Parsing is
I : constant Integer := 12345;
S : constant String := I'Img (1 .. 2);
end Attribute_Parsing;
| Ada | attribute_parsing.ads |
-- Copyright 2015-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | aux_pck.adb |
-- Copyright 2015-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | aux_pck.ads |
-- Copyright 2017-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | b.adb |
-- Copyright 2017-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | b.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | back_end.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | back_end.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | backend_utils.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | backend_utils.ads |
-- { dg-do compile }
procedure Bad_Array is
A1 : array(Character range <> ) of Character := ( 'a', 'b', 'c' );
begin
null;
end Bad_Array;
| Ada | bad_array.adb |
-- Copyright 2015-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar.adb |
-- Copyright 2015-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar.ads |
-- Copyright 2015-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_1.adb |
-- Copyright 2004-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_1.ads |
-- Copyright 2018-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_2.adb |
-- Copyright 2015-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_2.ads |
-- Copyright 2018-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_3.adb |
-- Copyright 2004-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_4.adb |
-- Copyright 2008-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_5.adb |
-- Copyright 2015-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_6.adb |
-- Copyright 2015-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bar_o203_012.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bcheck.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bcheck.ads |
-- Copyright 2019-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bias.adb |
-- { dg-do compile }
-- { dg-options "-cargs -g -dA -gnatws -fgnat-encodings=gdb -margs" }
-- { dg-final { scan-assembler "DW_AT_GNU_bias" } }
procedure Bias1 is
type Small is range -7 .. -4;
for Small'Size use 2;
Y : Small := -5;
Y1 : Small := -7;
type Byte is mod 256;
type Repeat_Count_T is new... | Ada | bias1.adb |
-- { dg-do run }
procedure Bias2 is
type Biased_T is range 1 .. 2 ** 6;
for Biased_T'Size use 6; -- { dg-warning "biased representation" }
X, Y : Biased_T;
begin
X := 1;
Y := 1;
if X + Y /= 2 then
raise Program_Error;
end if;
X := 2;
Y := 1;
if X - Y /= 1 then
raise Program_Error;
en... | Ada | bias2.adb |
-- { dg-do run }
-- { dg-options "-gnatws" }
procedure Biased_Subtype is
CIM_Max_AA : constant := 9_999_999;
CIM_Min_AA : constant := -999_999;
type TIM_AA is range CIM_Min_AA..CIM_Max_AA + 1;
for TIM_AA'Size use 24;
subtype STIM_AA is TIM_AA range TIM_AA(CIM_Min_AA)..TIM_AA(CIM_Max_AA);
SAA : ST... | Ada | biased_subtype.adb |
-- { dg-do run }
-- { dg-options "-gnatws" }
with Unchecked_Conversion;
procedure biased_uc is
begin
-- Case (f) target type is biased, source is unbiased
declare
type a is new integer range 0 .. 255;
for a'size use 8;
type b is new integer range 200 .. 455;
for b'size use 8;
... | Ada | biased_uc.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | binde.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | binde.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | binderr.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | binderr.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindgen.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindgen.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-augmentors.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-augmentors.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-builders.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-builders.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-diagnostics.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-diagnostics.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-elaborators.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-elaborators.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-graphs.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-graphs.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-units.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-units.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-validators.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-validators.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-writers.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo-writers.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindo.ads |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindusg.adb |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | Ada | bindusg.ads |
-- { dg-do run }
procedure BIP_Aggregate_Bug is
package Limited_Types is
type Lim_Tagged is tagged limited record
Root_Comp : Integer;
end record;
type Lim_Ext is new Lim_Tagged with record
Ext_Comp : Integer;
end record;
function Func_Lim_Tagged (Choice : Intege... | Ada | bip_aggregate_bug.adb |
-- { dg-do compile }
with BIP_Case_Expr_Pkg; use BIP_Case_Expr_Pkg;
procedure BIP_Case_Expr is
function Make_Any_Lim_Ctrl (Flag : Boolean) return Lim_Ctrl is
begin
return (case Flag is
when True => Make_Lim_Ctrl,
when False => Make_Lim_Ctrl);
end;
Res : Lim_Ctrl ... | Ada | bip_case_expr.adb |
with Ada.Finalization; use Ada.Finalization;
package BIP_Case_Expr_Pkg is
type Lim_Ctrl is new Limited_Controlled with null record;
function Make_Lim_Ctrl return Lim_Ctrl;
end BIP_Case_Expr_Pkg;
| Ada | bip_case_expr_pkg.ads |
-- { dg-do compile }
with BIP_CU_T; use BIP_CU_T;
with BIP_CU_Constructor;
procedure BIP_CU is
Value : constant T := BIP_CU_Constructor;
begin
null;
end;
| Ada | bip_cu.adb |
with BIP_CU_T; use BIP_CU_T;
function BIP_CU_Constructor return T is
begin
return Make_T (Name => "Rumplestiltskin");
end BIP_CU_Constructor;
| Ada | bip_cu_constructor.adb |
with BIP_CU_T; use BIP_CU_T;
function BIP_CU_Constructor return T;
| Ada | bip_cu_constructor.ads |
package body BIP_CU_T is
function Make_T (Name : String) return T is
begin
return (Name => To_Unbounded_String (Name), others => <>);
end Make_T;
end BIP_CU_T;
| Ada | bip_cu_t.adb |
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package BIP_CU_T is
type T is limited private;
function Make_T (Name : String) return T;
private
type T is limited record
Name : Unbounded_String;
end record;
end BIP_CU_T;
| Ada | bip_cu_t.ads |
-- { dg-do compile }
-- { dg-options "-gnatwa" }
package body BIP_Exception is
package body Constructors is
function Initialize return T_C4_Scheduler is
begin
return T_C4_Scheduler'(T_Super with null record);
end Initialize;
end Constructors;
overriding procedure V_Run (This : in... | Ada | bip_exception.adb |
pragma Restrictions (No_Exception_Propagation);
with BIP_Exception_Pkg;
package BIP_Exception is
type T_C4_Scheduler is new BIP_Exception_Pkg.T_Process with private;
type T_C4_Scheduler_Class_Access is access all T_C4_Scheduler'Class;
package Constructors is
function Initialize return T_C4_Scheduler;
... | Ada | bip_exception.ads |
pragma Restrictions (No_Exception_Propagation);
package BIP_Exception_Pkg is
type T_Process is abstract tagged limited private;
type T_Process_Class_Access is access all T_Process'Class;
procedure V_Run (This : in T_Process) is abstract;
private
type T_Process is abstract tagged limited null record;
end ... | Ada | bip_exception_pkg.ads |
-- { dg-do compile }
package body Bip_Export is
function F return T is
begin
return Result : constant T := G do
null;
end return;
end F;
function G return T is
begin
return (null record);
end G;
end Bip_Export;
| Ada | bip_export.adb |
package Bip_Export is
type T is limited null record;
function F return T;
pragma Export (C, F);
function G return T;
end Bip_Export;
| Ada | bip_export.ads |
-- { dg-do compile }
with System;
package body BIP_Overlay
with
SPARK_Mode
is
function Init return X
is
begin
return Result : X do
Result.E := 0;
end return;
end Init;
I : X := Init
with
Volatile,
Async_Readers,
Address => System'To_Address (16#1234_5678#)... | Ada | bip_overlay.adb |
package BIP_Overlay
with SPARK_Mode
is
type X (<>) is limited private;
pragma Warnings (gnatprove, Off,
"volatile function ""Init"" has no volatile effects",
reason => "Init is a pure function but returns a volatile type.");
function Init return X
with
Volatile_Function;
private
type ... | Ada | bip_overlay.ads |
-- { dg-do compile }
package body BIP_Prim_Func is
type NTT is new TT with record
J : Integer;
end record;
function Prim_Func return NTT is
begin
return Result : NTT := (I => 1, J => 2);
end Prim_Func;
end BIP_Prim_Func;
| Ada | bip_prim_func.adb |
package BIP_Prim_Func is
pragma Elaborate_Body;
type TT is abstract tagged limited record
I : Integer;
end record;
function Prim_Func return TT is abstract;
end BIP_Prim_Func;
| Ada | bip_prim_func.ads |
-- { dg-do compile }
with System;
procedure Bit_Order1 is
type Sample_Ttype is tagged record
Data : Natural;
end record;
type Other_Type is new Sample_Ttype with record
Other_Data : String (1 .. 100);
end record;
for Other_Type'Bit_Order use System.High_Order_First; -- { dg-error "Bit_... | Ada | bit_order1.adb |
-- PR ada/33788
-- Origin: Oliver Kellogg <oliver.kellogg@eads.com>
-- { dg-do compile }
package body Bit_Packed_Array1 is
procedure Generate_Callforward is
Compiler_Crash : String :=
Laser_Illuminator_Code_Group_T'Image
(MADR.ISF.Laser_Illuminator_Code (0));
begin
null;
e... | Ada | bit_packed_array1.adb |
with Interfaces;
package Bit_Packed_Array1 is
type laser_illuminator_code_group_t is (zero, one);
pragma Convention (C, laser_illuminator_code_group_t);
subtype lic_array_index_t is Interfaces.Unsigned_8 range 0 .. 3;
type lic_array_t is array (lic_array_index_t)
of laser_illuminator_code_group_t;
... | Ada | bit_packed_array1.ads |
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure Bit_Packed_Array2 is
type Bit_Array is array (integer range <>) of Boolean;
pragma Pack(Bit_Array);
b1 : Bit_Array(1..64);
b2 : Bit_array(1..64);
res : Bit_array(1..64);
begin
if (not((not b1) or (not b2))) /= res then
null;
end if;
e... | Ada | bit_packed_array2.adb |
-- { dg-do run }
-- { dg-options "-O2 -gnatp" }
procedure Bit_Packed_Array3 is
type Bitmap_T is array (1 .. 10) of Boolean;
pragma Pack (Bitmap_T);
type Maps_T is record
M1 : Bitmap_T;
end record;
pragma Pack (Maps_T);
for Maps_T'Size use 10;
pragma Suppress_Initialization (Maps_T);
Tm... | Ada | bit_packed_array3.adb |
-- { dg-do compile }
package body Bit_Packed_Array4 is
procedure Process (M : Message_Type) is
D : Data_Type;
begin
D := M.Data;
end;
end Bit_Packed_Array4;
| Ada | bit_packed_array4.adb |
package Bit_Packed_Array4 is
type Data_Type is array (1 .. 39) of Boolean;
pragma Pack (Data_Type);
for Data_Type'Alignment use 1;
type Message_Type is record
Valid : Boolean;
Data : Data_Type;
end record;
for Message_Type use record
Valid at 0 range 0 .. 0;
Data at 0 range... | Ada | bit_packed_array4.ads |
-- { dg-do compile }
with System;
package body Bit_Packed_Array5 is
function Inv (Word : Word_Type) return Word_Type is
W : Word_Type := Word;
pragma Volatile (W);
A_W : constant System.Address := W'Address;
V : Short_Bit_Array_Type;
for V'Address use A_W;
pragma Volatile (V)... | Ada | bit_packed_array5.adb |
package Bit_Packed_Array5 is
type Bit_Array is array (Integer range <>) of Boolean;
pragma Pack (Bit_Array);
type Short_Bit_Array_Type is new Bit_Array (0 .. 15);
for Short_Bit_Array_Type'Size use 16;
type Word_Type is range 0 .. 65535;
for Word_Type'Size use 16;
function Inv (Word : Word_Type)... | Ada | bit_packed_array5.ads |
-- { dg-do run }
-- { dg-options "-O2 -gnata -gnatVa" }
with Bit_Packed_Array6_Pkg; use Bit_Packed_Array6_Pkg;
procedure Bit_Packed_Array6 is
B : constant Boolean := Everywhere (K_Configuration);
begin
null;
end;
| Ada | bit_packed_array6.adb |
package Bit_Packed_Array6_Pkg is
type Project_Kind is
(K_Configuration, K_Abstract,
K_Standard, K_Library, K_Aggregate, K_Aggregate_Library);
type Projects_Kind is array (Project_Kind) of Boolean
with Pack,
Dynamic_Predicate => Projects_Kind /= (Project_Kind => False);
Everywhere :... | Ada | bit_packed_array6_pkg.ads |
-- Copyright 2018-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bla.adb |
-- Copyright 2018-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bla_1.adb |
-- Copyright 2018-2023 Free Software Foundation, Inc.
--
-- This program 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
-- (at your option) any later version.
--
-- ... | Ada | bla_2.adb |
-- { dg-do run }
with System, Ada.Unchecked_Conversion; use System;
procedure BLKextract_From_Reg is
type Byte is range 0 .. +255;
for Byte'size use 8;
type RGB is array (1 .. 3) of Byte;
for RGB'Size use 24;
type RAW_Packet is range 0 .. 2 ** 32 - 1;
for RAW_Packet'Size use 32;
type Compo... | Ada | blkextract_from_reg.adb |
-- { dg-do compile }
-- This test used to crash a compiler with assertions enabled
procedure Block_Ext_Return_Assert_Failure is
function Return_Int return Integer is
begin
return 123;
end Return_Int;
function F return Integer is
begin
declare
begin
return Result : constan... | Ada | block_ext_return_assert_failure.adb |
-- { dg-do run }
procedure Bltins is
function Sqrt (F : Float) return Float;
pragma Import (Intrinsic, Sqrt, "__builtin_sqrtf");
F : Float := 4.0;
R : Float;
begin
R := Sqrt (F);
end;
| Ada | bltins.adb |
-- { dg-do run }
-- { dg-options "-O" }
with System; use System;
procedure Boolean_Bitfield is
Units_Per_Integer : constant :=
(Integer'Size + System.Storage_Unit - 1) / System.Storage_Unit;
type E_type is (Red, Blue, Green);
type Parent_Type is record
I : Integer range 0 .. 127 := 127;
C : Chara... | Ada | boolean_bitfield.adb |
-- { dg-do run }
with System; use System;
procedure Boolean_Conv is
subtype B1 is Boolean;
subtype B2 is Boolean;
A0, A1, A2 : Address;
B : aliased B1;
procedure P2 (X2 : access B2) is
begin
A2 := X2.all'Address;
end P2;
procedure P1 (X1 : access B1) is
begin
A1 := X1.all'Address;
... | Ada | boolean_conv.adb |
-- PR middle-end/36554
-- Origin: Laurent Guerby <laurent@guerby.net>
-- { dg-do compile }
-- { dg-options "-O2" }
package body Boolean_Expr1 is
function Long_Float_Is_Valid (X : in Long_Float) return Boolean is
Is_Nan : constant Boolean := X /= X;
Is_P_Inf : constant Boolean := X > Long_Float'Last;
... | Ada | boolean_expr1.adb |
package Boolean_Expr1 is
function S (V : in Long_Float) return String;
end Boolean_Expr1;
| Ada | boolean_expr1.ads |
-- { dg-do run }
procedure Boolean_Expr2 is
function Ident_Bool (B : Boolean) return Boolean is
begin
return B;
end;
begin
if Boolean'Succ (Ident_Bool(False)) /= True then
raise Program_Error;
end if;
if Boolean'Pred (Ident_Bool(True)) /= False then
raise Program_Error;
end if;
end;
| Ada | boolean_expr2.adb |
-- { dg-do compile }
-- { dg-options "-O2" }
procedure Boolean_Subtype1 is
subtype Component_T is Boolean;
function Condition return Boolean is
begin
return True;
end;
V : Integer := 0;
function Component_Value return Integer is
begin
V := V + 1;
return V;
end;
Most_Si... | Ada | boolean_subtype1.adb |
-- { dg-do compile }
-- { dg-options "-O3 -gnata" }
package body Boolean_Subtype2 is
function Component_Type (Id : Entity_Id) return Entity_Id is
begin
pragma Assert (Is_String_Type (Id));
return Node20 (Id);
end;
function First_Index (Id : Entity_Id) return Node_Id is
begin
pragma A... | Ada | boolean_subtype2.adb |
with Boolean_Subtype2_Pkg; use Boolean_Subtype2_Pkg;
package Boolean_Subtype2 is
subtype B is Boolean;
function Is_String_Type (Id : Entity_Id) return B;
end Boolean_Subtype2;
| Ada | boolean_subtype2.ads |
package Boolean_Subtype2_Pkg is
type Node_Id is range 0 .. 099_999_999;
subtype Entity_Id is Node_Id;
function Node20 (N : Node_Id) return Node_Id;
function Flag63 (N : Node_Id) return Boolean;
function Present (N : Node_Id) return Boolean;
end Boolean_Subtype2_Pkg;
| Ada | boolean_subtype2_pkg.ads |
-- { dg-do compile }
package box1 is
type Root is tagged null record;
type Der1 is new Root with record
B : Boolean;
end record;
type Der2 is new Der1 with null record;
type Der3 is new Der2 with null record;
Obj : Der3 := (Der2 with others => <>);
end;
| Ada | box1.ads |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.