diff --git a/gcc/testsuite/rust/compile/range_from_expr_for_loop.rs b/gcc/testsuite/rust/compile/range_from_expr_for_loop.rs new file mode 100644 index 000000000000..69b4b0c12c21 --- /dev/null +++ b/gcc/testsuite/rust/compile/range_from_expr_for_loop.rs @@ -0,0 +1,7 @@ +// { dg-additional-options "-frust-compile-until=ast" } +fn main() { + for _ in 1.. { + break; + } + let i = 2; +}