summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-negative.rs
blob: 1cb56093628af98fa925109d98baec9d56d0a2e6 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
// Issue #358
#![allow(non_upper_case_globals)]

static toplevel_mod: isize = -1;

pub fn main() {
    assert_eq!(toplevel_mod, -1);
}