Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gnat.dg / opt83.adb
blobd71672f622ccd482eaa086bb3cb6dc5d93a692de
1 -- { dg-do compile }
2 -- { dg-options "-O2" }
4 -- rpo fre3 used to loop indefinitely replacing _2 with _8 and back,
5 -- given MEM[(struct test__e &)_2][0]{lb: _7 sz: 16}._tag = A23s_29;
6 -- and an earlier _8 = &*_2[0]{lb: _7 sz: 16}.
8 procedure Opt83 is
10 type E is tagged record
11 I : Natural := 0;
12 end record;
14 type A is array (Natural range <>) of aliased E;
16 F : E;
18 R : access A;
20 procedure N is
21 begin
22 if R = null then
23 R := new A (0 .. 4);
24 end if;
25 end N;
27 begin
31 R (0) := F;
33 end Opt83;