mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 07:36:59 +00:00
11 lines
304 B
Rust
11 lines
304 B
Rust
#![crate_type = "lib"]
|
|
#![feature(used_with_arg)]
|
|
|
|
// CHECK: @llvm.used = appending global {{.*}}USED_LINKER
|
|
#[used(linker)]
|
|
static mut USED_LINKER: [usize; 1] = [0];
|
|
|
|
// CHECK-NEXT: @llvm.compiler.used = appending global {{.*}}USED_COMPILER
|
|
#[used(compiler)]
|
|
static mut USED_COMPILER: [usize; 1] = [0];
|