mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +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];
|