summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/avremu/test-suite/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/avremu/test-suite/string.c')
-rw-r--r--Master/texmf-dist/source/latex/avremu/test-suite/string.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/avremu/test-suite/string.c b/Master/texmf-dist/source/latex/avremu/test-suite/string.c
new file mode 100644
index 00000000000..616598884ed
--- /dev/null
+++ b/Master/texmf-dist/source/latex/avremu/test-suite/string.c
@@ -0,0 +1,22 @@
+#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:
+*/