summaryrefslogtreecommitdiffstats
path: root/tests/ui/sanitize/inline-always.rs
blob: 52dc5578180396198a400f9ae4d1307a58185a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

#![feature(no_sanitize)]

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

fn main() {
    x()
}