diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-31 15:43:51 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:13:15 +0100 |
commit | 4e554b0ddea9488bb6f6bd326afe4b29fd68e1d3 (patch) | |
tree | 904e1b8d42ba2dea99301d4ca094ce5dac16b2cd | |
parent | 348f028fc2957d13e828030119938b8fccb00fc3 (diff) | |
download | gcc-4e554b0ddea9488bb6f6bd326afe4b29fd68e1d3.zip gcc-4e554b0ddea9488bb6f6bd326afe4b29fd68e1d3.tar.gz gcc-4e554b0ddea9488bb6f6bd326afe4b29fd68e1d3.tar.bz2 |
gccrs: Add a new test for float disambiguation
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>
-rw-r--r-- | gcc/testsuite/rust/compile/tuple_float_index.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/tuple_float_index.rs b/gcc/testsuite/rust/compile/tuple_float_index.rs new file mode 100644 index 0000000..87410c5 --- /dev/null +++ b/gcc/testsuite/rust/compile/tuple_float_index.rs @@ -0,0 +1,6 @@ +fn main() { + let tuple = (((),()),); + + // Do not reformat, the space after the second dot is required + let _ = tuple.0. 1; +} |