gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / annota1.c
index 7d423e0960cb619807eff1eb361535d7da6c52ea..239ea162af6b6591202fb93c57794fb4936c5cee 100644 (file)
@@ -1,10 +1,6 @@
 #include <stdio.h>
 #include <signal.h>
 
-#ifdef __sh__
-#define signal(a,b)    /* Signals not supported on this target - make them go away */
-#endif
-
 
 #ifdef PROTOTYPES
 void
@@ -29,7 +25,7 @@ int
 main ()
 #endif
 {
-  int my_array[3] = { 1, 2, 3 };
+  int my_array[3] = { 1, 2, 3 };  /* break main */
   
   value = 7;
   
@@ -39,7 +35,13 @@ main ()
 
   printf ("value is %d\n", value);
   printf ("my_array[2] is %d\n", my_array[2]);
+  
+  {
+    int i;
+    for (i = 0; i < 5; i++)
+      value++;  /* increment value */
+  }
 
-  return 0;
+  return 0;  /* after loop */
 }
 
This page took 0.025918 seconds and 4 git commands to generate.