old-cross-binutils/gdb/testsuite/gdb.base/langs0.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

24 lines
329 B
C

/* This file is actually in C, it is not supposed to simulate something
translated from another language or anything like that. */
int
csub (x)
int x;
{
return x + 1;
}
int
langs0__2do ()
{
return fsub_ () + 2;
}
int
main ()
{
if (langs0__2do () == 5003)
/* Success. */
return 0;
else
return 1;
}