]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/used_with_arg.rs
Rollup merge of #94093 - tmiasko:pp-no-variants, r=oli-obk
[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 [1 x i8*]{{.*}}USED_LINKER
5 #[used(linker)]
6 static mut USED_LINKER: [usize; 1] = [0];
7
8 // CHECK-NEXT: @llvm.compiler.used = appending global [1 x i8*]{{.*}}USED_COMPILER
9 #[used(compiler)]
10 static mut USED_COMPILER: [usize; 1] = [0];