[AVR] Add AVR platform support
This commit is contained in:
parent
5d39f1fa29
commit
690bb8af51
21 changed files with 158 additions and 2 deletions
|
|
@ -0,0 +1,9 @@
|
|||
// Test that the AVR interrupt ABI cannot be used when avr_interrupt
|
||||
// feature gate is not used.
|
||||
|
||||
extern "avr-interrupt" fn foo() {}
|
||||
//~^ ERROR avr-interrupt and avr-non-blocking-interrupt ABIs are experimental and subject to change
|
||||
|
||||
fn main() {
|
||||
foo();
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
error[E0658]: avr-interrupt and avr-non-blocking-interrupt ABIs are experimental and subject to change
|
||||
--> $DIR/feature-gate-abi-avr-interrupt.rs:14:1
|
||||
|
|
||||
LL | extern "avr-interrupt" fn foo() {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add #![feature(abi_avr_interrupt)] to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue