From: Philip Herron <[email protected]>
Fixes Rust-GCC#3662
gcc/testsuite/ChangeLog:
* rust/compile/issue-3662.rs: New test.
Signed-off-by: Philip Herron <[email protected]>
---
gcc/testsuite/rust/compile/issue-3662.rs | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 gcc/testsuite/rust/compile/issue-3662.rs
diff --git a/gcc/testsuite/rust/compile/issue-3662.rs
b/gcc/testsuite/rust/compile/issue-3662.rs
new file mode 100644
index 00000000000..88baa2e2574
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-3662.rs
@@ -0,0 +1,8 @@
+pub fn rlib() {
+ let _ = ((-1 as i8) << 8 - 1) as f32;
+ let _ = 0u8 as char;
+ let _ = true > false;
+ let _ = true >= false;
+ let _ = true < false;
+ let _ = true >= false;
+}
--
2.49.0