summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/used_with_arg.rs
blob: 4515cb2aed0c137c427d50130c496e3b1780a820 (plain)
1
2
3
4
5
6
7
8
9
10
#![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];