Imported Upstream version 7.9
[platform/upstream/gdb.git] / gdb / testsuite / gdb.base / async.c
index 0d9c875..9148b19 100644 (file)
@@ -1,28 +1,25 @@
 
 
-#ifdef PROTOTYPES
 int
 foo (void)
-#else
-int
-foo ()
-#endif
 {
- int x, y;
+ int y;
+ volatile int x;
 
- x = 5;
+ x = 5; x = 5; x = 5;
  y = 3;
 
  return x + y;
 }
 
-#ifdef PROTOTYPES
 int
-main (void)
-#else
+baz (void)
+{
+  return 5;
+}
+
 int
-main ()
-#endif
+main (void)
 {
  int y, z;
  
@@ -30,19 +27,7 @@ main ()
  z = 9;
  y = foo ();
  z = y;
- y = y + 2;
+ y = y + 2; /* jump here */
  y = baz ();
- return 0;
-}
-
-
-#ifdef PROTOTYPES
-int
-baz (void)
-#else
-int
-baz ()
-#endif
-{ 
-  return 5;
+ return 0; /* until here */
 }