rust/tests/codegen/used_with_arg.rs
2023-01-11 09:32:08 +00:00

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];