mb-inline.h revision 1.6
1103591Swollman/* Test gdb support for setting multiple file:line breakpoints on static
2103591Swollman   functions.  In practice the functions may be inline fns compiled with -O0.
3103591Swollman   We avoid using inline here for simplicity's sake.
4103591Swollman
5103591Swollman   This testcase is part of GDB, the GNU debugger.
6103591Swollman
7103591Swollman   Copyright 2008-2016 Free Software Foundation, Inc.
8103591Swollman
9103591Swollman   This program is free software; you can redistribute it and/or modify
10103591Swollman   it under the terms of the GNU General Public License as published by
11103591Swollman   the Free Software Foundation; either version 3 of the License, or
12103591Swollman   (at your option) any later version.
13103591Swollman
14103591Swollman   This program is distributed in the hope that it will be useful,
15103591Swollman   but WITHOUT ANY WARRANTY; without even the implied warranty of
16103591Swollman   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17103591Swollman   GNU General Public License for more details.
18103591Swollman
19103591Swollman   You should have received a copy of the GNU General Public License
20103591Swollman   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
21103591Swollman
22103591Swollmanstatic int
23103591Swollmanfoo (int i)
24103591Swollman{
25103591Swollman  return i; // set breakpoint here
26103591Swollman}
27103591Swollman
28103591Swollmanstatic int
29103591Swollmanmulti_line_foo (int i)
30103591Swollman{
31103591Swollman  return // set multi-line breakpoint here
32103591Swollman    i;
33103591Swollman}
34103591Swollman
35103591Swollmanextern int afn ();
36103591Swollmanextern int bfn ();
37103591Swollman