1
0
mirror of synced 2024-11-22 04:54:24 +01:00
avremu/source/test-suite/func-ptr.c
Christian Dietrich 8d320f3744 Use TDS Layout
2014-10-09 15:20:20 +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:
*/