about summary refs log tree commit diff
path: root/tests/ui/sanitizer/inline-always-sanitize.rs
blob: d6ee214e9b3749d04b4e9d3316d343659ce891dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass

#![feature(sanitize)]

#[inline(always)]
//~^ NOTE inlining requested here
#[sanitize(address = "off")]
//~^ WARN  setting `sanitize` off will have no effect after inlining
//~| NOTE on by default
fn x() {
}

fn main() {
    x()
}