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 Rust-GCC#2659.

gcc/testsuite/ChangeLog:

	* rust/compile/not_a_float_literal_tuple_index.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P authored and CohenArthur committed Jan 9, 2024
1 parent 66918e1 commit fca69d4
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 fca69d4

Please sign in to comment.