diff options
author | Tom Tromey <tromey@adacore.com> | 2022-02-16 12:01:52 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-03-07 08:25:11 -0700 |
commit | c9bfa277e9e6467dad91641357e09bf0a7ac0dc2 (patch) | |
tree | 0ff02e7601896ff486779069c992446f2dc60306 /gdb/testsuite/gdb.ada/float-bits/prog.adb | |
parent | 47a39c6e18324360b3ef9b72f03e206417f2ce9c (diff) | |
download | binutils-c9bfa277e9e6467dad91641357e09bf0a7ac0dc2.zip binutils-c9bfa277e9e6467dad91641357e09bf0a7ac0dc2.tar.gz binutils-c9bfa277e9e6467dad91641357e09bf0a7ac0dc2.tar.bz2 |
Fix Ada integer literals with exponents
While working on another patch, I noticed that Ada integer literals
with exponents did not work. For example, with one form you get an
error:
(gdb) print 8e2
Invalid digit `e' in based literal
And with another form you get an incorrect value:
(gdb) print 16#8#e2
$2 = 8
This patch fixes the bugs and adds tests.
Diffstat (limited to 'gdb/testsuite/gdb.ada/float-bits/prog.adb')
0 files changed, 0 insertions, 0 deletions