Skip to content

Commit

Permalink
Add new regression test
Browse files Browse the repository at this point in the history
Add a new test to highlight fix of #2658.

gcc/testsuite/ChangeLog:

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

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Oct 17, 2023
1 parent 442008f commit 0abe96a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcc/testsuite/rust/compile/while_break_expr.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
let _ = 'l: while break 'l {};
}

0 comments on commit 0abe96a

Please sign in to comment.