2023-09-18 13:11:01 -05:00
|
|
|
//@ compile-flags:-C panic=abort
|
|
|
|
//@ only-x86_64
|
|
|
|
|
|
|
|
#![feature(target_feature_11)]
|
|
|
|
#![no_std]
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
|
|
|
|
#[panic_handler]
|
|
|
|
#[target_feature(enable = "avx2")]
|
2024-04-17 05:17:29 -05:00
|
|
|
//~^ ERROR `#[panic_handler]` function is not allowed to have `#[target_feature]`
|
2023-09-18 13:11:01 -05:00
|
|
|
fn panic(info: &PanicInfo) -> ! {
|
|
|
|
unimplemented!();
|
|
|
|
}
|