]> git.lizzy.rs Git - rust.git/blobdiff - src/test/codegen/external-no-mangle-statics.rs
Rollup merge of #90277 - pierwill:fix-70258-inference-terms, r=jackh726
[rust.git] / src / test / codegen / external-no-mangle-statics.rs
index feb4af6286eea1c8d4726a05eb53670569c65a9f..6274434cd8fcc3754c844fd5a38c0b233f061bf0 100644 (file)
@@ -1,10 +1,11 @@
+// revisions: lib staticlib
 // ignore-emscripten default visibility is hidden
 // compile-flags: -O
 // `#[no_mangle]`d static variables always have external linkage, i.e., no `internal` in their
 // definitions
 
-#![crate_type = "lib"]
-#![no_std]
+#![cfg_attr(lib, crate_type = "lib")]
+#![cfg_attr(staticlib, crate_type = "staticlib")]
 
 // CHECK: @A = local_unnamed_addr constant
 #[no_mangle]