Skip to content

Commit 1655c1a

Browse files
committed
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.
1 parent 8a730a2 commit 1655c1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fn main() {
2+
let x: int = 8i;
3+
let y = 9i;
4+
x + y;
5+
6+
let q: int = -8i;
7+
let r = -9i;
8+
q + r;
9+
}

0 commit comments

Comments
 (0)