From: Eric Botcazou Date: Mon, 4 Nov 2024 10:15:15 +0000 (+0100) Subject: Add regression test X-Git-Tag: releases/gcc-12.5.0~460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db2611e392a28f6b4969d8d469ad47f307367ab0;p=thirdparty%2Fgcc.git Add regression test This is for the latest fix made to Selected_Length_Checks in Checks. gcc/testsuite * gnat.dg/specs/array7.ads: New test. --- diff --git a/gcc/testsuite/gnat.dg/specs/array7.ads b/gcc/testsuite/gnat.dg/specs/array7.ads new file mode 100644 index 000000000000..643ec3bb9ce5 --- /dev/null +++ b/gcc/testsuite/gnat.dg/specs/array7.ads @@ -0,0 +1,14 @@ +-- { dg-do compile } +-- { dg-options "-O" } + +package Array7 is + + type I is interface; + + type Rec (Name_Len : Natural) is new I with record + Input : String (1 .. Name_Len); + end record; + + function Image (R : Rec) return String is ("I" & String (R.Input)); + +end Array7;