1
0
mirror of synced 2024-07-21 02:02:30 +02:00
avremu/tests/func-ptr.c
Christian Dietrich d59eab62e6 IJMP & ICALL
2014-09-28 23:21:43 +02:00

23 lines
305 B
C

#include <avr/io.h>
// Produces LPM operations
__attribute__((noinline)) void bar() {
UDR='X';
}
void (*foo)() = bar;
int main() {
bar();
foo();
asm volatile ("break");
}
/*
check-name: Function Pointers
check-start:
\avr@instr@stepn{1000000}
\avr@test@UDR{XX}
check-end:
*/