gccrs: Add new regression test
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 <pierre-emmanuel.patry@embecosm.com>
This commit is contained in:
parent
c53cef37b8
commit
3d43c98bf8
1 changed files with 3 additions and 0 deletions
3
gcc/testsuite/rust/compile/while_break_expr.rs
Normal file
3
gcc/testsuite/rust/compile/while_break_expr.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
let _ = 'l: while break 'l {};
|
||||
}
|
Loading…
Add table
Reference in a new issue