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
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 New Issue
Block a user