Example program.
[repair.git] / Repair / RepairCompiler / MCC / Runtime / ex_test.cc
1 #include "ex_aux.h"
2 #include "memory.h"
3 struct Node {
4      int data;
5      struct Node *next;
6      struct Node *prev;
7 };
8
9 int main(int argc, char **argv) {
10   initializemmap();
11   struct Node * head = 0;
12   (struct Node *) malloc(sizeof (struct Node));
13   head->prev=0;
14   head->next=0;
15   for(int i=0;i<300;i++) {
16     struct Node * tmp =(struct Node *) malloc(sizeof (struct Node));
17     tmp->next=head;
18     head->prev=tmp;
19     head=tmp;
20     }
21   
22   for(int j=0;j<600;j++) {
23 #include "ex.cc"
24   }
25  
26 }