1 /* 2 * Test program for tracing; circular buffer 3 */ 4 5 int n = 6; 6 7 int testload[13]; 8 func0(void)9static void func0(void) 10 { 11 } 12 func1(void)13static void func1(void) 14 { 15 } 16 func2(void)17static void func2(void) 18 { 19 } 20 func3(void)21static void func3(void) 22 { 23 } 24 func4(void)25static void func4(void) 26 { 27 } 28 func5(void)29static void func5(void) 30 { 31 } 32 func6(void)33static void func6(void) 34 { 35 } 36 func7(void)37static void func7(void) 38 { 39 } 40 func8(void)41static void func8(void) 42 { 43 } 44 func9(void)45static void func9(void) 46 { 47 } 48 begin()49static void begin () /* called before anything else */ 50 { 51 } 52 end()53static void end () /* called after everything else */ 54 { 55 } 56 57 int main(argc,argv,envp)58main (argc, argv, envp) 59 int argc; 60 char *argv[], **envp; 61 { 62 int i; 63 64 #ifdef usestubs 65 set_debug_traps (); 66 breakpoint (); 67 #endif 68 69 begin (); 70 for (i = 0; i < sizeof(testload) / sizeof(testload[0]); i++) 71 testload[i] = i + 1; 72 73 func0 (); 74 func1 (); 75 func2 (); 76 func3 (); 77 func4 (); 78 func5(); 79 func6 (); 80 func7 (); 81 func8 (); 82 func9 (); 83 84 end (); 85 86 #ifdef usestubs 87 breakpoint (); 88 #endif 89 return 0; 90 } 91