From cf451d3bba438d465b847b0ade7960127cfe81c6 Mon Sep 17 00:00:00 2001
From: Taylor Cramer <cramertj@cs.washington.edu>
Date: Mon, 28 Mar 2016 21:44:18 -0700
Subject: [PATCH] Added > and >= tests for upcast comparisons

---
 tests/compile-fail/invalid_upcast_comparisons.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/compile-fail/invalid_upcast_comparisons.rs b/tests/compile-fail/invalid_upcast_comparisons.rs
index f94b4959287..263e74e5f4a 100644
--- a/tests/compile-fail/invalid_upcast_comparisons.rs
+++ b/tests/compile-fail/invalid_upcast_comparisons.rs
@@ -16,4 +16,7 @@ fn main() {
     -5 < (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always true
     0 <= (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always true
     0 < (zero as i32);
+
+    -5 > (zero as i32); //~ERROR because of the numeric bounds on `zero` prior to casting, this expression is always false
+    -5 >= (u8_max as i32); //~ERROR because of the numeric bounds on `u8_max` prior to casting, this expression is always false
 }