about summary refs log tree commit diff
path: root/tests/ui/allocator/auxiliary/system-allocator2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/allocator/auxiliary/system-allocator2.rs')
-rw-r--r--tests/ui/allocator/auxiliary/system-allocator2.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/allocator/auxiliary/system-allocator2.rs b/tests/ui/allocator/auxiliary/system-allocator2.rs
new file mode 100644
index 00000000000..97b86bbc96d
--- /dev/null
+++ b/tests/ui/allocator/auxiliary/system-allocator2.rs
@@ -0,0 +1,8 @@
+// no-prefer-dynamic
+
+#![crate_type = "rlib"]
+
+use std::alloc::System;
+
+#[global_allocator]
+static A: System = System;