about summary refs log tree commit diff
path: root/src/test/ui/sanitize/use-after-scope.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-19 14:29:22 +0200
committerGitHub <noreply@github.com>2020-06-19 14:29:22 +0200
commit0851036ae30efa58b47258ad3b718d6ef66dc706 (patch)
tree04f732fcf61a4ba689142e9329a0af1a0d99d2d0 /src/test/ui/sanitize/use-after-scope.rs
parent1dc6c3c4ad2d08cc8d8d414cd04cbf0350e2bb14 (diff)
parentd40e624a3625c7c2d68c949435fd883cd43dd065 (diff)
downloadrust-0851036ae30efa58b47258ad3b718d6ef66dc706.tar.gz
rust-0851036ae30efa58b47258ad3b718d6ef66dc706.zip
Rollup merge of #73044 - tmiasko:compiletest-san, r=nikomatsakis
compiletest: Add directives to detect sanitizer support

Add needs-sanitizer-{address,leak,memory,thread} directive indicating
that test requires target with support for specific sanitizer.

This is an addition to the existing needs-sanitizer-support directive
indicating that test requires a sanitizer runtime library.

The existing needs-sanitizer-support directive could be incorporated into the
new ones, but I decided to retain it, since it enables running sanitizer
codegen tests even when building of sanitizer runtime libraries is disabled.
Diffstat (limited to 'src/test/ui/sanitize/use-after-scope.rs')
-rw-r--r--src/test/ui/sanitize/use-after-scope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/sanitize/use-after-scope.rs b/src/test/ui/sanitize/use-after-scope.rs
index 6a2067e157a..30be2ae6f09 100644
--- a/src/test/ui/sanitize/use-after-scope.rs
+++ b/src/test/ui/sanitize/use-after-scope.rs
@@ -1,5 +1,5 @@
 // needs-sanitizer-support
-// only-x86_64
+// needs-sanitizer-address
 //
 // compile-flags: -Zsanitizer=address
 // run-fail