xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.linespec/base/two/thefile.cc (revision 47c37bc27558091724f1a0d4eef4c8f80c94c00a)
1 /* The commented line must have the same line number in the other
2    "thefile.c".  */
3 
4 #define WANT_F2
5 #include "../../lspec.h"
6 
dupname(int y)7 static int dupname(int y)
8 {
9  label: return y;
10 }
11 
twodup()12 static int twodup ()
13 {
14   return 0;
15 }
16 
n(int y)17 int n(int y)
18 {
19   int v = dupname(y) - 23;	/* thefile breakpoint */
20   return v + twodup ();		/* after dupname */
21 }
22 
overload(double x)23 int NameSpace::overload(double x)
24 {
25   return (int) x - 23;
26 }
27 
z2()28 int z2 ()
29 {
30   return 0;
31 }
32