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