Skip to content

Commit

Permalink
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 #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 Nov 6, 2023
1 parent 7de72c6 commit e009d3d
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 e009d3d

Please sign in to comment.