4 * Test routines for testing the tracing code.
8 struct DummyStruct* next;
13 AddCounts(struct DummyStruct* S1,
14 struct DummyStruct* S2,
15 struct DummyStruct* S3, int noPrint)
18 printf("&S1 = %p\t&S2 = %p\t&S3 = %p\n", S1, S2, S3);
19 return S1->seqnum + S2->seqnum + S3->seqnum;
23 testAllocaOrder(int noPrint)
26 struct DummyStruct S1, S2, S3;
32 printf("sum = %d\n", AddCounts(&S1, &S2, &S3, noPrint));
36 main(int argc, char** argv)
38 unsigned int i, noPrint = 1;
39 if (argc > 1 && ! strcmp(argv[1], "-d"))
41 for (i=0; i < 10; ++i)
42 testAllocaOrder(noPrint);