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