diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-17 13:40:47 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:09:36 +0100 |
commit | f522eefcfd1dec9dc5291146e6747a0cb4632385 (patch) | |
tree | b839530371604b920f99719d0c8620970b87af18 | |
parent | 311121156e27e156c71bbbe2f12e35b1618ed100 (diff) | |
download | gcc-f522eefcfd1dec9dc5291146e6747a0cb4632385.zip gcc-f522eefcfd1dec9dc5291146e6747a0cb4632385.tar.gz gcc-f522eefcfd1dec9dc5291146e6747a0cb4632385.tar.bz2 |
gccrs: Add regression test for float literal tuple indices
Add a new regression test in order to highlight the fix for #2659.
gcc/testsuite/ChangeLog:
* rust/compile/not_a_float_literal_tuple_index.rs: New test.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs b/gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs new file mode 100644 index 0000000..b67d0be --- /dev/null +++ b/gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs @@ -0,0 +1,3 @@ +fn main() { + (1, (2, 3)).1.1; +} |