aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/langs2.cxx
blob: 5a2ca8a1568c1a58f4da90cbcd4f28c745eb0901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}