gdb.cp/call-c.exp C++ify
Make the testcase work when built with a C++ compiler. gdb/testsuite/ChangeLog: * gdb.cp/call-c-1.c (foo) [__cplusplus]: Add extern "C".
This commit is contained in:
parent
dd23068d52
commit
7474326cb9
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2020-09-17 Pedro Alves <pedro@palves.net>
|
||||
|
||||
* gdb.cp/call-c-1.c (foo) [__cplusplus]: Add extern "C".
|
||||
|
||||
2020-09-17 Pedro Alves <pedro@palves.net>
|
||||
|
||||
* gdb.python/py-frame-inline.exp: Adjust to optionally expect a
|
||||
|
|
|
@ -15,4 +15,7 @@
|
|||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
int foo(int x) { return x; }
|
||||
|
|
Loading…
Add table
Reference in a new issue