diff options
author | Tom Tromey <tromey@adacore.com> | 2020-11-10 10:06:08 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-11-10 10:06:08 -0700 |
commit | 95016fd211b66445cb3b9e86aeb8b6951f56315f (patch) | |
tree | 85a0b870706fb76f3667b97e2c076f1e20e9dea0 /gdb/testsuite/gdb.ada/bias | |
parent | 83100a74a542bc2fa99387f518712ec0ef408a4b (diff) | |
download | gdb-95016fd211b66445cb3b9e86aeb8b6951f56315f.zip gdb-95016fd211b66445cb3b9e86aeb8b6951f56315f.tar.gz gdb-95016fd211b66445cb3b9e86aeb8b6951f56315f.tar.bz2 |
Fix bug in gdb.ada/bias.exp
While working on a different bug in the Ada support, I found that the
gdb.ada/bias.exp test is slightly incorrect. In particular, it is
using a range type, which it then overflows during an operation.
This patch changes the test so that the computed values remain in
range.
gdb/testsuite/ChangeLog
2020-11-10 Tom Tromey <tromey@adacore.com>
* gdb.ada/bias.exp: Update.
* gdb.ada/bias/bias.adb (X): Change value.
Diffstat (limited to 'gdb/testsuite/gdb.ada/bias')
-rw-r--r-- | gdb/testsuite/gdb.ada/bias/bias.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/bias/bias.adb b/gdb/testsuite/gdb.ada/bias/bias.adb index abea170..cf24810 100644 --- a/gdb/testsuite/gdb.ada/bias/bias.adb +++ b/gdb/testsuite/gdb.ada/bias/bias.adb @@ -23,7 +23,7 @@ procedure Bias is type Repeat_Count_T is range 1 .. 2 ** 6; for Repeat_Count_T'Size use 6; - X : Repeat_Count_T := 64; + X : Repeat_Count_T := 60; X1 : Repeat_Count_T := 1; type Char_Range is range 65 .. 68; |