]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/used_with_arg.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / codegen / used_with_arg.rs
1 #![crate_type = "lib"]
2 #![feature(used_with_arg)]
3
4 // CHECK: @llvm.used = appending global {{.*}}USED_LINKER
5 #[used(linker)]
6 static mut USED_LINKER: [usize; 1] = [0];
7
8 // CHECK-NEXT: @llvm.compiler.used = appending global {{.*}}USED_COMPILER
9 #[used(compiler)]
10 static mut USED_COMPILER: [usize; 1] = [0];