summaryrefslogtreecommitdiffstats
path: root/tests/incremental/issue-84252-global-alloc.rs
blob: d2438df89ff5b0504e4ae688d03dbf226df7e3f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// revisions: cfail1 cfail2
// build-pass

#![crate_type="lib"]
#![crate_type="cdylib"]

#[allow(unused_imports)]
use std::alloc::System;

#[cfg(cfail1)]
#[global_allocator]
static ALLOC: System = System;