mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 13:18:32 +00:00
12 lines
339 B
Rust
12 lines
339 B
Rust
// 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 malformed `cfi_encoding` attribute input
|
|
pub struct Type1(i32);
|