]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
Add Do_Nothing to two more Ada tests
authorTom Tromey <tromey@adacore.com>
Wed, 17 Dec 2025 18:08:30 +0000 (11:08 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 18 Dec 2025 13:47:03 +0000 (06:47 -0700)
commita30cd56e1014ba7a34cf77719193b3e64834e8e2
tree9717413dfd38f81decca386b91f3a5b3095b6e8d
parent1b5496684056bce7e2910db0afc050f7b73e45d7
Add Do_Nothing to two more Ada tests

A couple of Ada tests were failing with gnat-llvm, because LLVM is a
bit more aggressive about eliminating unused local variables.  This
patch arranges for some variables to be kept alive a little longer,
using the usual Do_Nothing technique.
gdb/testsuite/gdb.ada/py_taft/main.adb
gdb/testsuite/gdb.ada/py_taft/pkg.adb
gdb/testsuite/gdb.ada/py_taft/pkg.ads
gdb/testsuite/gdb.ada/recursive-variant/main.adb
gdb/testsuite/gdb.ada/recursive-variant/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/recursive-variant/pck.ads [new file with mode: 0644]