mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
* gdb.base/langs.exp, gdb.base/langs*: New test.
* gdb.base/Makefile.in: Build it. * TODO: Remove item about checking that C names don't get C++ demangling applied; this test tests it.
This commit is contained in:
13
gdb/testsuite/gdb.base/langs2.cxx
Normal file
13
gdb/testsuite/gdb.base/langs2.cxx
Normal file
@ -0,0 +1,13 @@
|
||||
extern "C" int csub (int);
|
||||
int
|
||||
foo (int x)
|
||||
{
|
||||
return csub (x / 2);
|
||||
}
|
||||
|
||||
extern "C" int cppsub_ (int);
|
||||
int
|
||||
cppsub_ (int *y)
|
||||
{
|
||||
return foo (*y);
|
||||
}
|
Reference in New Issue
Block a user