about summary refs log tree commit diff
path: root/tests/ui/consts/const-negative.rs
blob: 96a271add1e89997279dd09f49d8036d4d855705 (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);
}