diff --git a/gcc/testsuite/rust/compile/while_break_expr.rs b/gcc/testsuite/rust/compile/while_break_expr.rs new file mode 100644 index 00000000000..099683e45de --- /dev/null +++ b/gcc/testsuite/rust/compile/while_break_expr.rs @@ -0,0 +1,3 @@ +fn main() { + let _ = 'l: while break 'l {}; +}