1
0
mirror of synced 2024-09-06 02:06:22 +02:00
avremu/tests/func-ptr.c

23 lines
305 B
C
Raw Normal View History

2014-09-28 23:21:43 +02:00
#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:
*/