2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gnat.dg / test_address_null_init.adb
blob18824d666a1bcd0c4e7435ac5bd43e883d04ec27
1 -- { dg-do run }
2 -- { dg-options "-gnatws" }
4 with Address_Null_Init; use Address_Null_Init;
5 with Ada.Text_IO; use Ada.Text_IO;
7 procedure Test_Address_Null_Init is
8 begin
9 if B /= null then
10 Put_Line ("ERROR: B was not default initialized to null!");
11 end if;
13 if A /= null then
14 Put_Line ("ERROR: A was not reinitialized to null!");
15 end if;
16 end Test_Address_Null_Init;