summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/avremu/test-suite/string.c
blob: 616598884edfd34ccf6e4eaed8418b06fe7acf97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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:
*/