c44c67b5ae
* gdb.base/Makefile.in: Build it. * TODO: Remove item about checking that C names don't get C++ demangling applied; this test tests it.
13 lines
145 B
C++
13 lines
145 B
C++
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);
|
|
}
|