Debian Codegraph @

texmf-dist/source/latex/avremu/test-suite/func-ptr.c

raw
1 #include <avr/io.h>
2
3 // Produces LPM operations
4 __attribute__((noinline)) void bar() {
5 UDR='X';
6 }
7 void (*foo)() = bar;
8
9 int main() {
10 bar();
11 foo();
12 asm volatile ("break");
13 }
14
15 /*
16 check-name: Function Pointers
17 check-start:
18 \avr@instr@stepn{1000000}
19
20 \avr@test@UDR{XX}
21 check-end:
22 */