rust/tests/ui/attributes/issue-105594-invalid-attr-validation.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
417 B
Rust
Raw Normal View History

2022-12-12 12:08:59 +00:00
// This checks that the attribute validation ICE in issue #105594 doesn't
// recur.
//
2023-03-08 09:12:27 +00:00
// ignore-thumbv8m.base-none-eabi
2022-12-12 12:08:59 +00:00
#![feature(cmse_nonsecure_entry)]
fn main() {}
#[track_caller] //~ ERROR attribute should be applied to a function
static _A: () = ();
#[cmse_nonsecure_entry] //~ ERROR attribute should be applied to a function
static _B: () = (); //~| ERROR #[cmse_nonsecure_entry]` is only valid for targets