diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-09-09 00:28:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-09 00:28:21 +0200 |
| commit | 2ae5dc9b65704e23f84eab13c55d39756ab653d5 (patch) | |
| tree | be0e34472411c7638cf6b9f8a4975039dfc2e4e6 | |
| parent | 69044a169353d3e4f10d1ef4a901136aa0837521 (diff) | |
| parent | 7f45d16cb2c74f15bff26b42ed4994159ae1de4f (diff) | |
| download | rust-2ae5dc9b65704e23f84eab13c55d39756ab653d5.tar.gz rust-2ae5dc9b65704e23f84eab13c55d39756ab653d5.zip | |
Rollup merge of #115673 - tmiasko:sanitizer-cfg, r=compiler-errors
Fix sanitize/cfg.rs test * Move needs-sanitizer conditions to specific revisions that require them (otherwise the conditions are mutually exclusive with needs-sanitizer-kcfi and test is always ignored). * Add missing revisions
| -rw-r--r-- | tests/ui/sanitize/cfg.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/sanitize/cfg.rs b/tests/ui/sanitize/cfg.rs index c0f08a6d1e5..523de1ceaee 100644 --- a/tests/ui/sanitize/cfg.rs +++ b/tests/ui/sanitize/cfg.rs @@ -2,19 +2,19 @@ // the `#[cfg(sanitize = "option")]` attribute is configured. // needs-sanitizer-support -// needs-sanitizer-address -// needs-sanitizer-cfi -// needs-sanitizer-kcfi -// needs-sanitizer-leak -// needs-sanitizer-memory -// needs-sanitizer-thread // check-pass -// revisions: address leak memory thread +// revisions: address cfi kcfi leak memory thread +//[address]needs-sanitizer-address //[address]compile-flags: -Zsanitizer=address --cfg address -//[cfi]compile-flags: -Zsanitizer=cfi --cfg cfi +//[cfi]needs-sanitizer-cfi +//[cfi]compile-flags: -Zsanitizer=cfi --cfg cfi -Clto +//[kcfi]needs-sanitizer-kcfi //[kcfi]compile-flags: -Zsanitizer=kcfi --cfg kcfi +//[leak]needs-sanitizer-leak //[leak]compile-flags: -Zsanitizer=leak --cfg leak +//[memory]needs-sanitizer-memory //[memory]compile-flags: -Zsanitizer=memory --cfg memory +//[thread]needs-sanitizer-thread //[thread]compile-flags: -Zsanitizer=thread --cfg thread #![feature(cfg_sanitize)] |
