rust/tests/codegen/used_with_arg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
304 B
Rust
Raw Normal View History

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