about summary refs log tree commit diff
path: root/tests/ui/asm/tainting-on-error.rs
blob: a8e9af911580d5d51716122bb434c9589b5482c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ needs-asm-support

use std::arch::asm;

fn main() {
    unsafe {
        asm!(
            "/* {} */",
            sym None::<()>,
            //~^ ERROR invalid `sym` operand
        );
    }
}