Debian Codegraph @

gcc/testsuite/gnat.dg/opt90e.adb

raw
1 -- { dg-do run }
2 -- { dg-options "-O2" }
3
4 with Ada.Calendar; use Ada.Calendar;
5 with Opt90e_Pkg; use Opt90e_Pkg;
6
7 procedure Opt90e is
8 B : constant Integer := Year (Clock);
9 V : Data;
10
11 begin
12 V := (R => (A => 0, B => B, C => 0, D => "000000000000"));
13 if V.R.B /= B then
14 raise Program_Error;
15 end if;
16 end;