summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.linespec/ls-errs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.linespec/ls-errs.c')
-rw-r--r--gdb/testsuite/gdb.linespec/ls-errs.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.linespec/ls-errs.c b/gdb/testsuite/gdb.linespec/ls-errs.c
index ca41342eb04..a3a43dbc24e 100644
--- a/gdb/testsuite/gdb.linespec/ls-errs.c
+++ b/gdb/testsuite/gdb.linespec/ls-errs.c
@@ -15,14 +15,21 @@
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;