mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
![Ramon de C Valle](/assets/img/avatar_default.png)
Moves the sanitizer ui tests to the sanitizer directory and removes the sanitizer prefix from tests file names similarly to how the sanitizer codegen tests are organized.
12 lines
351 B
Rust
12 lines
351 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 10:1: 10:16: malformed `cfi_encoding` attribute input
|
|
pub struct Type1(i32);
|