]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add new regression test
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 16 Oct 2023 12:21:42 +0000 (14:21 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 17 Oct 2023 13:19:47 +0000 (13:19 +0000)
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>
gcc/testsuite/rust/compile/while_break_expr.rs [new file with mode: 0644]

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