]> git.lizzy.rs Git - rust.git/blob - tests/codegen/used_with_arg.rs
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / 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];