about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorcynecx <me@cynecx.net>2022-02-08 23:51:17 +0100
committercynecx <me@cynecx.net>2022-02-08 23:51:17 +0100
commit438826fd1a9a119d00992ede948cdd479431ecbb (patch)
treec7477627b59fff475ee3641e012f52d845daea82 /src/test/codegen
parente075586d4fd428374a788eecc391e23ec4a17b46 (diff)
add more tests and make used(linker/compiler) mutually exclusive
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/used_with_arg.rs6
1 files changed, 2 insertions, 4 deletions
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];