const-block: Add testcase

gcc/testsuite/ChangeLog:

	* rust/execute/torture/const_block1.rs: New test.
This commit is contained in:
Arthur Cohen 2025-04-15 13:41:41 +02:00 committed by CohenArthur
parent 70fab4b0ce
commit 7e42c1ee80
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
const X: i32 = const {
let a = 15;
let b = 14;
a + b
};
fn main() -> i32 {
X - 29
}