From 438826fd1a9a119d00992ede948cdd479431ecbb Mon Sep 17 00:00:00 2001 From: cynecx Date: Tue, 8 Feb 2022 23:51:17 +0100 Subject: add more tests and make used(linker/compiler) mutually exclusive --- src/test/codegen/used_with_arg.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/test/codegen') diff --git a/src/test/codegen/used_with_arg.rs b/src/test/codegen/used_with_arg.rs index cd759b167c0..5bff50a40d4 100644 --- a/src/test/codegen/used_with_arg.rs +++ b/src/test/codegen/used_with_arg.rs @@ -1,12 +1,10 @@ -// compile-flags: -O - #![crate_type = "lib"] #![feature(used_with_arg)] -// CHECK: @llvm.used = appending global [1 x i8*] +// CHECK: @llvm.used = appending global [1 x i8*]{{.*}}USED_LINKER #[used(linker)] static mut USED_LINKER: [usize; 1] = [0]; -// CHECK-NEXT: @llvm.compiler.used = appending global [1 x i8*] +// CHECK-NEXT: @llvm.compiler.used = appending global [1 x i8*]{{.*}}USED_COMPILER #[used(compiler)] static mut USED_COMPILER: [usize; 1] = [0]; -- cgit 1.4.1-3-g733a5