]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-abi-msp430-interrupt.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-abi-msp430-interrupt.rs
CommitLineData
32a655c1
SL
1// Test that the MSP430 interrupt ABI cannot be used when msp430_interrupt
2// feature gate is not used.
3157f602 3
f035d41b
XL
4// ignore-riscv64 msp430 is not supported
5
32a655c1
SL
6extern "msp430-interrupt" fn foo() {}
7//~^ ERROR msp430-interrupt ABI is experimental and subject to change
a7813a04 8
970d7e83 9fn main() {
32a655c1 10 foo();
223e47cc 11}