summaryrefslogtreecommitdiffstats
path: root/tests/ui/sanitize/cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/sanitize/cfg.rs')
-rw-r--r--tests/ui/sanitize/cfg.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/sanitize/cfg.rs b/tests/ui/sanitize/cfg.rs
index 79dfe58f0..c0f08a6d1 100644
--- a/tests/ui/sanitize/cfg.rs
+++ b/tests/ui/sanitize/cfg.rs
@@ -3,12 +3,16 @@
// 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
//[address]compile-flags: -Zsanitizer=address --cfg address
+//[cfi]compile-flags: -Zsanitizer=cfi --cfg cfi
+//[kcfi]compile-flags: -Zsanitizer=kcfi --cfg kcfi
//[leak]compile-flags: -Zsanitizer=leak --cfg leak
//[memory]compile-flags: -Zsanitizer=memory --cfg memory
//[thread]compile-flags: -Zsanitizer=thread --cfg thread
@@ -18,6 +22,12 @@
#[cfg(all(sanitize = "address", address))]
fn main() {}
+#[cfg(all(sanitize = "cfi", cfi))]
+fn main() {}
+
+#[cfg(all(sanitize = "kcfi", kcfi))]
+fn main() {}
+
#[cfg(all(sanitize = "leak", leak))]
fn main() {}