about summary refs log tree commit diff
path: root/tests/ui/allocator/two-allocators2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/allocator/two-allocators2.rs')
-rw-r--r--tests/ui/allocator/two-allocators2.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/allocator/two-allocators2.rs b/tests/ui/allocator/two-allocators2.rs
new file mode 100644
index 00000000000..6dfefe19c7f
--- /dev/null
+++ b/tests/ui/allocator/two-allocators2.rs
@@ -0,0 +1,12 @@
+// aux-build:system-allocator.rs
+// no-prefer-dynamic
+// error-pattern: the `#[global_allocator]` in
+
+extern crate system_allocator;
+
+use std::alloc::System;
+
+#[global_allocator]
+static A: System = System;
+
+fn main() {}