summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/deferred_const3.adb
blob: 84554d3063f0cf624e9c9de747fac710f0318565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- { dg-do run }

with System; use System;
with Deferred_Const3_Pkg; use Deferred_Const3_Pkg;

procedure Deferred_Const3 is
begin
  if C1'Address /= C'Address then
    raise Program_Error;
  end if;

  if C2'Address /= C'Address then
    raise Program_Error;
  end if;

  if C3'Address /= C'Address then
    raise Program_Error;
  end if;
end;