From 2706bd5d32e2aa08d0fcccbb632b1e48905ce7b1 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Mon, 2 Dec 2024 17:02:25 +0000 Subject: [PATCH] gccrs: add test case to show issue is fixed Fixes Rust-GCC#266 gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 cant handle this * rust/compile/issue-266.rs: New test. Signed-off-by: Philip Herron --- gcc/testsuite/rust/compile/issue-266.rs | 3 +++ gcc/testsuite/rust/compile/nr2/exclude | 1 + 2 files changed, 4 insertions(+) create mode 100644 gcc/testsuite/rust/compile/issue-266.rs diff --git a/gcc/testsuite/rust/compile/issue-266.rs b/gcc/testsuite/rust/compile/issue-266.rs new file mode 100644 index 000000000000..11196cb7d735 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-266.rs @@ -0,0 +1,3 @@ +fn main() { + 'label: while break 'label {} +} diff --git a/gcc/testsuite/rust/compile/nr2/exclude b/gcc/testsuite/rust/compile/nr2/exclude index bf4506f25d25..797e59a5c580 100644 --- a/gcc/testsuite/rust/compile/nr2/exclude +++ b/gcc/testsuite/rust/compile/nr2/exclude @@ -207,4 +207,5 @@ issue-2905-1.rs issue-2905-2.rs issue-2907.rs issue-2423.rs +issue-266.rs # please don't delete the trailing newline