From: Arthur Cohen <arthur.co...@embecosm.com>

gcc/testsuite/ChangeLog:

        * rust/execute/torture/const_block1.rs: New test.
---
 gcc/testsuite/rust/execute/torture/const_block1.rs | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 gcc/testsuite/rust/execute/torture/const_block1.rs

diff --git a/gcc/testsuite/rust/execute/torture/const_block1.rs 
b/gcc/testsuite/rust/execute/torture/const_block1.rs
new file mode 100644
index 00000000000..eaf343249d1
--- /dev/null
+++ b/gcc/testsuite/rust/execute/torture/const_block1.rs
@@ -0,0 +1,9 @@
+const X: i32 = const {
+    let a = 15;
+    let b = 14;
+    a + b
+};
+
+fn main() -> i32 {
+    X - 29
+}
-- 
2.49.0

Reply via email to