Skip to content

Commit

Permalink
Add a new test for float disambiguation
Browse files Browse the repository at this point in the history
This new regression test highlight the behavior fixed for float
disambiguation with empty floating point.

gcc/testsuite/ChangeLog:

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

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
  • Loading branch information
P-E-P committed Nov 15, 2023
1 parent e79301c commit fd7d577
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/testsuite/rust/compile/tuple_float_index.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fn main() {
let tuple = (((),()),);

// Do not reformat, the space after the second dot is required
let _ = tuple.0. 1;
}

0 comments on commit fd7d577

Please sign in to comment.