mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
Add a test for negative constants. Closes #358
This commit is contained in:
parent
0e5f76a718
commit
33dd7cc854
7
src/test/run-pass/const-negative.rs
Normal file
7
src/test/run-pass/const-negative.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// Issue #358
|
||||
|
||||
const toplevel_mod: int = -1;
|
||||
|
||||
fn main() {
|
||||
assert toplevel_mod == -1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user