[AVR] Add AVR platform support

This commit is contained in:
Jake Goulding 2016-05-06 09:32:10 -04:00 committed by Dylan McKay
parent 5d39f1fa29
commit 690bb8af51
21 changed files with 158 additions and 2 deletions

View file

@ -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();
}

View file

@ -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`.