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