about summary refs log tree commit diff
path: root/tests/ui/sanitizer/cfi/normalize-integers-requires-cfi.rs
blob: b9d5b9623d5f03dc762c10c15e8d4bd8f8b41482 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Verifies that `-Zsanitizer-cfi-normalize-integers` requires `-Zsanitizer=cfi` or
// `-Zsanitizer=kcfi`
//
//@ needs-sanitizer-cfi
//@ compile-flags: -Clto -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsanitizer-cfi-normalize-integers

#![feature(no_core)]
#![no_core]
#![no_main]

//~? ERROR `-Zsanitizer-cfi-normalize-integers` requires `-Zsanitizer=cfi` or `-Zsanitizer=kcfi`