]> git.lizzy.rs Git - rust.git/blob - tests/codegen/issue-81408-dllimport-thinlto-windows.rs
Rollup merge of #106618 - jmillikin:os-net-rustdoc-wasm32, r=JohnTitor
[rust.git] / tests / codegen / issue-81408-dllimport-thinlto-windows.rs
1 // compile-flags: -O -C lto=thin -C prefer-dynamic=no
2 // only-windows
3 // aux-build:static_dllimport_aux.rs
4
5 // Test that on Windows, when performing ThinLTO, we do not mark cross-crate static items with
6 // dllimport because lld does not fix the symbol names for us.
7
8 extern crate static_dllimport_aux;
9
10 // CHECK-LABEL: @{{.+}}CROSS_CRATE_STATIC_ITEM{{.+}} =
11 // CHECK-SAME: external local_unnamed_addr global %"{{.+}}AtomicPtr
12
13 pub fn main() {
14     static_dllimport_aux::memrchr();
15 }