diff options
Diffstat (limited to 'tests/incremental/issue-84252-global-alloc.rs')
-rw-r--r-- | tests/incremental/issue-84252-global-alloc.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/incremental/issue-84252-global-alloc.rs b/tests/incremental/issue-84252-global-alloc.rs new file mode 100644 index 000000000..d2438df89 --- /dev/null +++ b/tests/incremental/issue-84252-global-alloc.rs @@ -0,0 +1,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; |