From 1655c1a825e6170a735d185a9f181061c429821d Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Tue, 12 Jun 2012 14:09:11 -0700 Subject: [PATCH] Add a test for explicit `i` suffix on integer literals This doesn't seem to show up anywhere else in the test suite, even though it's supposed to be legal. --- src/test/run-pass/explicit-i-suffix.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/test/run-pass/explicit-i-suffix.rs diff --git a/src/test/run-pass/explicit-i-suffix.rs b/src/test/run-pass/explicit-i-suffix.rs new file mode 100644 index 00000000000..71b7c844102 --- /dev/null +++ b/src/test/run-pass/explicit-i-suffix.rs @@ -0,0 +1,9 @@ +fn main() { + let x: int = 8i; + let y = 9i; + x + y; + + let q: int = -8i; + let r = -9i; + q + r; +}