Skip to content

Commit 4717a95

Browse files
committed
const-block: Add testcase
gcc/testsuite/ChangeLog: * rust/execute/torture/const_block1.rs: New test.
1 parent 110a00b commit 4717a95

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const X: i32 = const {
2+
let a = 15;
3+
let b = 14;
4+
a + b
5+
};
6+
7+
fn main() -> i32 {
8+
X - 29
9+
}

0 commit comments

Comments
 (0)