mirror of git://gcc.gnu.org/git/gcc.git
const-block: Add testcase
gcc/testsuite/ChangeLog: * rust/execute/torture/const_block1.rs: New test.
This commit is contained in:
parent
70fab4b0ce
commit
7e42c1ee80
|
|
@ -0,0 +1,9 @@
|
||||||
|
const X: i32 = const {
|
||||||
|
let a = 15;
|
||||||
|
let b = 14;
|
||||||
|
a + b
|
||||||
|
};
|
||||||
|
|
||||||
|
fn main() -> i32 {
|
||||||
|
X - 29
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue