Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / sso17.adb
blobed57580f0c5a5ad88c66bcadb4577c38bc7c8e0a
1 -- { dg-do run }
2 -- { dg-options "-gnatws -O" }
4 with System;
6 procedure SSO17 is
8 type My_Float is new Float range 0.0 .. 359.99;
10 type Rec is record
11 Az : My_Float;
12 El : My_Float;
13 end record;
14 for Rec'Bit_Order use System.High_Order_First;
15 for Rec'Scalar_Storage_Order use System.High_Order_First;
17 R : Rec;
19 procedure Is_True (B : Boolean);
20 pragma No_Inline (Is_True);
22 procedure Is_True (B : Boolean) is
23 begin
24 if not B then
25 raise Program_Error;
26 end if;
27 end;
29 begin
30 R := (Az => 1.1, El => 2.2);
31 Is_True (R.Az'Valid);
32 R := (Az => 3.3, El => 4.4);
33 Is_True (R.Az'Valid);
34 end;