]> git.lizzy.rs Git - rust.git/blob - tests/codegen/no-dllimport-w-cross-lang-lto.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / codegen / no-dllimport-w-cross-lang-lto.rs
1 // This test makes sure that functions get annotated with the proper
2 // "target-cpu" attribute in LLVM.
3
4 // no-prefer-dynamic
5 // only-msvc
6 // compile-flags: -C linker-plugin-lto
7
8 #![crate_type = "rlib"]
9
10 // CHECK-NOT: @{{.*}}__imp_{{.*}}GLOBAL{{.*}} = global i8*
11
12 pub static GLOBAL: u32 = 0;
13 pub static mut GLOBAL2: u32 = 0;