source: driver/tests/test2.c @ 3043

Last change on this file since 3043 was 2988, checked in by sacerdot, 7 years ago

Some easy tests.

File size: 255 bytes
Line 
1char a[] = {3, 2, 7, -4};
2char treshold = 4;
3
4int main() {
5        char j;
6        char *p = a;
7        int found = 0;
8        for (j=0; j < 4; j++) {
9                if (*p <= treshold) { found++; }
10                p++;
11        }
12        return found;
13}
Note: See TracBrowser for help on using the repository browser.