Initial import
[gdb.git] / gdb / testsuite / gdb.trace / limits.c
blobd9c02e74bacdae0b9b19b67310ddcc7ec06d42fb
1 /*
2 * Test program for tracing internal limits (number of tracepoints etc.)
3 */
5 int n = 6;
7 int arr[64];
9 static void foo(int x)
13 static void bar(int y)
17 static void baz(int z)
21 static void begin () /* called before anything else */
25 static void end () /* called after everything else */
29 int
30 main (argc, argv, envp)
31 int argc;
32 char *argv[], **envp;
34 int i;
36 #ifdef usestubs
37 set_debug_traps ();
38 breakpoint ();
39 #endif
41 begin ();
42 for (i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
43 arr[i] = i + 1;
45 foo (1);
46 bar (2);
47 baz (3);
48 end ();
49 return 0;