diff options
author | Tom de Vries <tdevries@suse.de> | 2022-06-04 13:17:33 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-06-04 13:17:33 +0200 |
commit | 1390b65a1b93f75cdd4165f190b4a95b93add66e (patch) | |
tree | 8a9a65061da32d5197e37ec32f2338d74e3aab16 /gdb/ada-lex.l | |
parent | 7af9baa9faead8155e4459104c30cb1b6a15180e (diff) | |
download | gdb-1390b65a1b93f75cdd4165f190b4a95b93add66e.zip gdb-1390b65a1b93f75cdd4165f190b4a95b93add66e.tar.gz gdb-1390b65a1b93f75cdd4165f190b4a95b93add66e.tar.bz2 |
[gdb/rust] Fix literal truncation
Make sure we error out on overflow instead of truncating in all cases.
I've used as overflow string: "Integer literal is too large", based
on what I found at
<rust-lang/rust>/src/test/ui/parser/int-literal-too-large-span.rs
but perhaps someone has a better idea.
Tested on x86_64-linux, with a build with --enable-targets=all.
Diffstat (limited to 'gdb/ada-lex.l')
0 files changed, 0 insertions, 0 deletions