summaryrefslogtreecommitdiffstats
path: root/src/test/ui/numbers-arithmetic/i8-incr.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/numbers-arithmetic/i8-incr.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/numbers-arithmetic/i8-incr.rs b/src/test/ui/numbers-arithmetic/i8-incr.rs
new file mode 100644
index 000000000..718d259f7
--- /dev/null
+++ b/src/test/ui/numbers-arithmetic/i8-incr.rs
@@ -0,0 +1,12 @@
+// run-pass
+
+
+
+
+pub fn main() {
+ let mut x: i8 = -12;
+ let y: i8 = -12;
+ x = x + 1;
+ x = x - 1;
+ assert_eq!(x, y);
+}