2025-02-24 09:26:54 +00:00
|
|
|
//@ add-core-stubs
|
2021-06-11 14:22:13 +03:00
|
|
|
//@ needs-llvm-components: msp430
|
|
|
|
|
//@ compile-flags: --target=msp430-none-elf --crate-type=rlib
|
|
|
|
|
#![no_core]
|
|
|
|
|
#![feature(no_core, lang_items)]
|
2025-02-24 09:26:54 +00:00
|
|
|
|
|
|
|
|
extern crate minicore;
|
|
|
|
|
use minicore::*;
|
2017-01-19 08:15:05 -05:00
|
|
|
|
2021-06-11 14:22:13 +03:00
|
|
|
extern "msp430-interrupt" fn f() {}
|
2025-02-05 11:15:27 -08:00
|
|
|
//~^ ERROR "msp430-interrupt" ABI is experimental
|
2020-05-20 17:35:47 +01:00
|
|
|
|
2021-06-11 14:22:13 +03:00
|
|
|
trait T {
|
|
|
|
|
extern "msp430-interrupt" fn m();
|
2025-02-05 11:15:27 -08:00
|
|
|
//~^ ERROR "msp430-interrupt" ABI is experimental
|
2017-01-19 08:15:05 -05:00
|
|
|
|
2021-06-11 14:22:13 +03:00
|
|
|
extern "msp430-interrupt" fn dm() {}
|
2025-02-05 11:15:27 -08:00
|
|
|
//~^ ERROR "msp430-interrupt" ABI is experimental
|
2017-01-19 08:15:05 -05:00
|
|
|
}
|
2021-06-11 14:22:13 +03:00
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
impl T for S {
|
|
|
|
|
extern "msp430-interrupt" fn m() {}
|
2025-02-05 11:15:27 -08:00
|
|
|
//~^ ERROR "msp430-interrupt" ABI is experimental
|
2021-06-11 14:22:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
|
extern "msp430-interrupt" fn im() {}
|
2025-02-05 11:15:27 -08:00
|
|
|
//~^ ERROR "msp430-interrupt" ABI is experimental
|
2021-06-11 14:22:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TA = extern "msp430-interrupt" fn();
|
2025-02-05 11:15:27 -08:00
|
|
|
//~^ ERROR "msp430-interrupt" ABI is experimental
|
2021-06-11 14:22:13 +03:00
|
|
|
|
|
|
|
|
extern "msp430-interrupt" {}
|
2025-02-05 11:15:27 -08:00
|
|
|
//~^ ERROR "msp430-interrupt" ABI is experimental
|