diff options
author | Tom Tromey <tromey@adacore.com> | 2025-01-07 13:54:17 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2025-01-10 09:05:04 -0700 |
commit | f0547c88fa7cb9a874d27e4a268a9ef2f40d8816 (patch) | |
tree | a989c8759a99146208ee41f5aa52fee83f030a3a /gdb/testsuite/gdb.ada/float-bits/prog.adb | |
parent | 07492186894c3eda4242e9994fc5e973b8f3fb0b (diff) | |
download | binutils-f0547c88fa7cb9a874d27e4a268a9ef2f40d8816.zip binutils-f0547c88fa7cb9a874d27e4a268a9ef2f40d8816.tar.gz binutils-f0547c88fa7cb9a874d27e4a268a9ef2f40d8816.tar.bz2 |
Minor test case updates for gnat-llvm
gnat-llvm seems to be a bit more aggressive about eliminating unused
variables. This patch improves the test results a tiny bit by
arranging for some variables to appear to be used.
Note the copyright dates on the new files are done that way because I
simply copied existing files.
Diffstat (limited to 'gdb/testsuite/gdb.ada/float-bits/prog.adb')
-rw-r--r-- | gdb/testsuite/gdb.ada/float-bits/prog.adb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/float-bits/prog.adb b/gdb/testsuite/gdb.ada/float-bits/prog.adb index 8a91b6e..21a2ae4 100644 --- a/gdb/testsuite/gdb.ada/float-bits/prog.adb +++ b/gdb/testsuite/gdb.ada/float-bits/prog.adb @@ -13,10 +13,14 @@ -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. +with Pck; use Pck; + procedure Prog is Val_Float : Float := 23.0; Val_Double : Long_Float := -2.0e-19; Val_Long_Double : Long_Long_Float := 5.0e+25; begin - null; -- BREAK + Do_Nothing (Val_Float'Address); -- BREAK + Do_Nothing (Val_Double'Address); + Do_Nothing (Val_Long_Double'Address); end Prog; |