1
0
mirror of synced 2024-11-25 06:24:23 +01:00
avremu/source/test-suite/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:
*/