We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daf2b32 commit 4955947Copy full SHA for 4955947
tests/ui/runtime/no-allocation-before-main.rs
@@ -3,8 +3,11 @@
3
//! The initial runtime should not allocate for performance/binary size reasons.
4
//!
5
//! -Cprefer-dynamic=no is required as otherwise #[global_allocator] does nothing.
6
+//! We only test linux-gnu as other targets currently need allocation for thread dtors.
7
//@ run-pass
8
//@ compile-flags: -Cprefer-dynamic=no
9
+//@ only-linux
10
+//@ only-gnu
11
12
#[allow(dead_code)]
13
#[path = "aborting-alloc.rs"]
0 commit comments