[gdb/testsuite] Fix gdb.ada/operator_bp.exp breakpoint location FAILs
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.linespec / ls-errs.c
index 321545ac709ad5d0efd5f8027881d87dc2f1d222..f469827b74d91870809a070e89defb7cf7a88e12 100644 (file)
@@ -1,6 +1,6 @@
 /* This testcase is part of GDB, the GNU debugger.
 
-   Copyright 2012-2013 Free Software Foundation, Inc.
+   Copyright 2012-2020 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-int myfunction (void) { return 0; }
+int
+myfunction (int aa)
+{
+  int i;
+
+  i = aa + 42;
+  return i;    /* set breakpoint here */
+}
 
 int
 main (void)
-{  
+{
   int a;
 
-  a = myfunction ();
+  a = myfunction (a);
 
  here:
   return a;
This page took 0.025733 seconds and 4 git commands to generate.