about summary refs log tree commit diff
path: root/tests/codegen/instrument-xray
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/instrument-xray')
-rw-r--r--tests/codegen/instrument-xray/basic.rs9
-rw-r--r--tests/codegen/instrument-xray/options-combine.rs12
-rw-r--r--tests/codegen/instrument-xray/options-override.rs11
3 files changed, 0 insertions, 32 deletions
diff --git a/tests/codegen/instrument-xray/basic.rs b/tests/codegen/instrument-xray/basic.rs
deleted file mode 100644
index 7aaebf41e36..00000000000
--- a/tests/codegen/instrument-xray/basic.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Checks that `-Z instrument-xray` produces expected instrumentation.
-//
-//@ needs-xray
-//@ compile-flags: -Z instrument-xray=always -Copt-level=0
-
-#![crate_type = "lib"]
-
-// CHECK: attributes #{{.*}} "function-instrument"="xray-always"
-pub fn function() {}
diff --git a/tests/codegen/instrument-xray/options-combine.rs b/tests/codegen/instrument-xray/options-combine.rs
deleted file mode 100644
index d1e3b78e6b2..00000000000
--- a/tests/codegen/instrument-xray/options-combine.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-// Checks that `-Z instrument-xray` options can be specified multiple times.
-//
-//@ needs-xray
-//@ compile-flags: -Z instrument-xray=skip-exit -Copt-level=0
-//@ compile-flags: -Z instrument-xray=instruction-threshold=123 -Copt-level=0
-//@ compile-flags: -Z instrument-xray=instruction-threshold=456 -Copt-level=0
-
-#![crate_type = "lib"]
-
-// CHECK:      attributes #{{.*}} "xray-instruction-threshold"="456" "xray-skip-exit"
-// CHECK-NOT:  attributes #{{.*}} "xray-instruction-threshold"="123"
-pub fn function() {}
diff --git a/tests/codegen/instrument-xray/options-override.rs b/tests/codegen/instrument-xray/options-override.rs
deleted file mode 100644
index 428fb723edb..00000000000
--- a/tests/codegen/instrument-xray/options-override.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-// Checks that the last `-Z instrument-xray` option wins.
-//
-//@ needs-xray
-//@ compile-flags: -Z instrument-xray=always -Copt-level=0
-//@ compile-flags: -Z instrument-xray=never -Copt-level=0
-
-#![crate_type = "lib"]
-
-// CHECK:      attributes #{{.*}} "function-instrument"="xray-never"
-// CHECK-NOT:  attributes #{{.*}} "function-instrument"="xray-always"
-pub fn function() {}