From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [pushed] Update more tests for gnat-llvm
Date: Fri, 1 May 2026 11:49:31 -0600 [thread overview]
Message-ID: <20260501174931.1883614-1-tromey@adacore.com> (raw)
I found a few more tests where a simple change would preserve the
behavior of the test while also making it pass with gnat-llvm.
As this is Ada and gnat-llvm-specific, I am checking it in.
---
gdb/testsuite/gdb.ada/aliased_array/foo.adb | 4 ++++
gdb/testsuite/gdb.ada/str_chars/foo.adb | 10 ++--------
.../tick_length_array_enum_idx/foo_n207_004.adb | 6 ++++++
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/gdb/testsuite/gdb.ada/aliased_array/foo.adb b/gdb/testsuite/gdb.ada/aliased_array/foo.adb
index 11a84c32f0a..759533fd561 100644
--- a/gdb/testsuite/gdb.ada/aliased_array/foo.adb
+++ b/gdb/testsuite/gdb.ada/aliased_array/foo.adb
@@ -16,6 +16,10 @@
with Pck; use Pck;
procedure Foo is
BT : aliased Bounded := New_Bounded (Low => 1, High => 3);
+ BT_First : Integer := BT'First;
+ BT_Last : Integer := BT'Last;
begin
Do_Nothing (BT'Address); -- STOP
+ Do_Nothing (BT_First'Address);
+ Do_Nothing (BT_Last'Address);
end Foo;
diff --git a/gdb/testsuite/gdb.ada/str_chars/foo.adb b/gdb/testsuite/gdb.ada/str_chars/foo.adb
index 019e782d6ce..81cd6f50339 100644
--- a/gdb/testsuite/gdb.ada/str_chars/foo.adb
+++ b/gdb/testsuite/gdb.ada/str_chars/foo.adb
@@ -14,13 +14,7 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
procedure Foo is
-
- procedure Blah (Arg : String) is
- begin
- null; -- STOP
- end;
-
+ Arg : String := "abcdefghijklmnopqrstuvwxyz";
begin
-
- Blah ("abcdefghijklmnopqrstuvwxyz");
+ null; -- STOP
end Foo;
diff --git a/gdb/testsuite/gdb.ada/tick_length_array_enum_idx/foo_n207_004.adb b/gdb/testsuite/gdb.ada/tick_length_array_enum_idx/foo_n207_004.adb
index 14375a5a7c2..120dc3d3d4d 100644
--- a/gdb/testsuite/gdb.ada/tick_length_array_enum_idx/foo_n207_004.adb
+++ b/gdb/testsuite/gdb.ada/tick_length_array_enum_idx/foo_n207_004.adb
@@ -21,10 +21,16 @@ procedure Foo_n207_004 is
Cold : Variable_Table := (Green => False, Blue => True, White => True);
Vars : Variable_Table := New_Variable_Table (Low => Red, High => Green);
PT_Full : Full_PT := (False, True, False, True, False);
+
+ Vars_First : Color := Vars'First;
+ Vars_Last : Color := Vars'Last;
+
begin
Do_Nothing (Full'Address); -- STOP
Do_Nothing (Prim'Address);
Do_Nothing (Cold'Address);
Do_Nothing (Vars'Address);
+ Do_Nothing (Vars_First'Address);
+ Do_Nothing (Vars_Last'Address);
Do_Nothing (PT_Full'Address);
end Foo_n207_004;
base-commit: 0586465daf276a2313f9eb0d2812f171a9ea28fb
--
2.53.0
reply other threads:[~2026-05-01 17:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260501174931.1883614-1-tromey@adacore.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox