2022-02-06 18:21:23 -06:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
#![feature(used_with_arg)]
|
|
|
|
|
2022-02-21 04:21:23 -06:00
|
|
|
// CHECK: @llvm.used = appending global {{.*}}USED_LINKER
|
2022-02-06 18:21:23 -06:00
|
|
|
#[used(linker)]
|
|
|
|
static mut USED_LINKER: [usize; 1] = [0];
|
|
|
|
|
2022-02-21 04:21:23 -06:00
|
|
|
// CHECK-NEXT: @llvm.compiler.used = appending global {{.*}}USED_COMPILER
|
2022-02-06 18:21:23 -06:00
|
|
|
#[used(compiler)]
|
|
|
|
static mut USED_COMPILER: [usize; 1] = [0];
|