1 // compile-flags: -O -C lto=thin -C prefer-dynamic=no
3 // aux-build:static_dllimport_aux.rs
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.
8 extern crate static_dllimport_aux;
10 // CHECK-LABEL: @{{.+}}CROSS_CRATE_STATIC_ITEM{{.+}} =
11 // CHECK-SAME: external local_unnamed_addr global %"{{.+}}AtomicPtr
14 static_dllimport_aux::memrchr();