diff options
Diffstat (limited to 'tests/ui/numbers-arithmetic/i8-incr.rs')
| -rw-r--r-- | tests/ui/numbers-arithmetic/i8-incr.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/numbers-arithmetic/i8-incr.rs b/tests/ui/numbers-arithmetic/i8-incr.rs new file mode 100644 index 00000000000..718d259f735 --- /dev/null +++ b/tests/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); +} |
