summaryrefslogtreecommitdiffstats
path: root/libacc/tests/data/iops.c
blob: 780e95d69e23000ff37e08f0dd5517cc8e50c2ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Check integer operations

void loops() {
    int y;
    printf("++\n");
    for(y = 0; y < 10; y++) {
        printf("%d\n", y);
    }
    printf("--\n");
    for(y = 10; y >= 0; y--) {
        printf("%d\n", y);
    }
}

void checkLiterals() {
    printf("Literals: %d %d\n", 1, -1);
}

int main() {
    checkLiterals();
    loops();
    return 0;
}