Skip to content

Commit

Permalink
gccrs: Add regression test for float literal tuple indices
Browse files Browse the repository at this point in the history
Add a new regression test in order to highlight the fix for Rust-GCC#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>
  • Loading branch information
P-E-P authored and CohenArthur committed Jan 9, 2024
1 parent c2efec5 commit 4e85a4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcc/testsuite/rust/compile/not_a_float_literal_tuple_index.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
(1, (2, 3)).1.1;
}

0 comments on commit 4e85a4a

Please sign in to comment.