texmf-dist/source/latex/avremu/test-suite/string.c
raw| 1 | #include <avr/io.h> |
| 2 | |
| 3 | // Produces LPM operations |
| 4 | const char *foo = "abc"; |
| 5 | |
| 6 | int main() { |
| 7 | char* p = foo; |
| 8 | while (*p) { |
| 9 | UDR = *p++; |
| 10 | } |
| 11 | |
| 12 | asm volatile ("break"); |
| 13 | } |
| 14 | |
| 15 | /* |
| 16 | check-name: String Operations |
| 17 | check-start: |
| 18 | \avr@instr@stepn{1000000} |
| 19 | |
| 20 | \avr@test@UDR{abc} |
| 21 | check-end: |
| 22 | */ |