X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.cp%2Fbreakpoint-locs.cc;fp=gdb%2Ftestsuite%2Fgdb.cp%2Fbreakpoint-locs.cc;h=d52a3f416feb8bb48a53a13c65373ebdbe79db10;hb=f9b5d5ea18a3878ca48c1b747e35d456133858bc;hp=0000000000000000000000000000000000000000;hpb=338d56a848007d806190e53c8ea53764060a7abb;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.cp/breakpoint-locs.cc b/gdb/testsuite/gdb.cp/breakpoint-locs.cc new file mode 100644 index 0000000000..d52a3f416f --- /dev/null +++ b/gdb/testsuite/gdb.cp/breakpoint-locs.cc @@ -0,0 +1,33 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2020 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include "breakpoint-locs.h" + +namespace N1 +{ + void foo () { C1::baz (); } +} + +extern void N1_bar (void); + +int +main () +{ + N1::foo (); + N1_bar (); + return 0; +}