diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/issue-3588.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/issue-3588.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/issue-3588.rs b/gcc/testsuite/rust/compile/issue-3588.rs new file mode 100644 index 0000000..744d967 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-3588.rs @@ -0,0 +1,5 @@ +const FOO: i32 = if true { [1, 2, 3] } else { [2, 3, 4] }[0]; + +pub fn test() -> i32 { + FOO +} |