PR 18303, Tolerate malformed input for lookup_symbol-called functions
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.linespec / ls-errs.c
index ca41342eb0465cfaf339fb09525266ad4e5281f0..a3a43dbc24e4016f16ceb911223ce658af2949d0 100644 (file)
    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.025135 seconds and 4 git commands to generate.