summaryrefslogtreecommitdiffstats
path: root/tests/ui/sanitize/sanitizer-cfi-invalid-attr-cfi-encoding.rs
blob: fe044f50a2162d6048c004ecf34ee5d7e1840994 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Verifies that invalid user-defined CFI encodings can't be used.
//
// needs-sanitizer-cfi
// compile-flags: -Clto -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsanitizer=cfi

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

#[cfi_encoding] //~ERROR 10:1: 10:16: malformed `cfi_encoding` attribute input
pub struct Type1(i32);