File: issue35.c

package info (click to toggle)
chibicc 1.0.23.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,832 kB
  • sloc: ansic: 62,911; sh: 275; makefile: 92
file content (24 lines) | stat: -rwxr-xr-x 476 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#include "test.h"
#define SIZE 10

int myarr[SIZE];
int myarr[] = {11, 34, };
int main(void) {
    for(int i = 0; i < SIZE; i++) {
        printf("%d: %d\n", i, myarr[i]);      

    }
    ASSERT(11, myarr[0]);
    ASSERT(34, myarr[1]);
    ASSERT(0, myarr[2]);    
    ASSERT(0, myarr[3]);
    ASSERT(0, myarr[4]);
    ASSERT(0, myarr[5]);
    ASSERT(0, myarr[6]);
    ASSERT(0, myarr[7]);
    ASSERT(0, myarr[8]);
    ASSERT(0, myarr[9]);

    return 0;
}