PR ipa/83051
[official-gcc.git] / gcc / testsuite / gnat.dg / controlled_record.adb
blob89a9380b9d2a3fd39577baa8497070f6389150e6
1 -- { dg-do compile }
2 -- { dg-options "-O2" }
4 with Ada.Text_IO; use Ada.Text_IO;
5 with Assert;
7 package body Controlled_Record is
9 procedure Assert_Invariants (PA : Point_T) is
10 PB : Point_T;
11 begin
12 Assert.Assert (PB.Pos = PA.Pos);
13 end;
15 end Controlled_Record;