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.
This commit is contained in:
parent
8a730a255d
commit
1655c1a825
1 changed files with 9 additions and 0 deletions
9
src/test/run-pass/explicit-i-suffix.rs
Normal file
9
src/test/run-pass/explicit-i-suffix.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
fn main() {
|
||||||
|
let x: int = 8i;
|
||||||
|
let y = 9i;
|
||||||
|
x + y;
|
||||||
|
|
||||||
|
let q: int = -8i;
|
||||||
|
let r = -9i;
|
||||||
|
q + r;
|
||||||
|
}
|
Loading…
Reference in a new issue