aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.linespec/base/two/thefile.cc
blob: f0c04cc04eeb244f13c42aa182e8f99a04027235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* The commented line must have the same line number in the other
   "thefile.c".  */

#define WANT_F2
#include "../../lspec.h"

static int dupname(int y)
{
 label: return y;
}

int n(int y)
{
  int v = dupname(y) - 23;	/* thefile breakpoint */
  return v;			/* after dupname */
}

int NameSpace::overload(double x)
{
  return (int) x - 23;
}