1
0
mirror of synced 2024-11-13 08:38:52 +01:00
avremu/tests/string.c

23 lines
295 B
C
Raw Normal View History

2014-09-28 22:53:22 +02:00
#include <avr/io.h>
// Produces LPM operations
const char *foo = "abc";
int main() {
char* p = foo;
while (*p) {
UDR = *p++;
}
asm volatile ("break");
}
/*
check-name: String Operations
check-start:
\avr@instr@stepn{1000000}
\avr@test@UDR{abc}
check-end:
*/