old-cross-binutils/gdb/testsuite/gdb.base/langs2.c
Jim Kingdon c44c67b5ae * 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.
1995-02-12 17:55:09 +00:00

15 lines
238 B
C

/* This is intended to be a vague simulation of cfront output. */
#line 1 "langs2.cxx"
extern int csub ();
int
foo__Fi (x) int x;
{
return csub (x / 2);
}
extern int cppsub_ (int *);
int
cppsub_ (y) int *y;
{
return foo__Fi (*y);
}