Test for PR gdb/17511, spurious SIGTRAP after stepping into+in signal handler
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / langs2.c
index 69f290d732306f082f376940d38b07c4190fc2d8..502b80063f07916987045f1da146d019d274f2fd 100644 (file)
@@ -1,4 +1,20 @@
 /* This is intended to be a vague simulation of cfront output.  */
+#ifdef PROTOTYPES
+#line 1 "langs2.cxx"
+extern int csub (int);
+int
+foo__Fi (int x)
+{
+  return csub (x / 2);
+}
+
+extern int cppsub_ (int *y);
+int
+cppsub_ (int * y)
+{
+  return foo__Fi (*y);
+}
+#else 
 #line 1 "langs2.cxx"
 extern int csub ();
 int
@@ -7,9 +23,10 @@ foo__Fi (x) int x;
   return csub (x / 2);
 }
 
-extern int cppsub_ (int *);
+extern int cppsub_ ();
 int
 cppsub_ (y) int *y;
 {
   return foo__Fi (*y);
 }
+#endif
This page took 0.024775 seconds and 4 git commands to generate.