aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/langs2.c
blob: 502b80063f07916987045f1da146d019d274f2fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* This is intended to be a vague simulation of cfront output.  */
#ifdef PROTOTYPES
#line 1 "langs2.cxx"
extern int csub (int);
int
foo__Fi (int x)
{
  return csub (x / 2);
}

extern int cppsub_ (int *y);
int
cppsub_ (int * y)
{
  return foo__Fi (*y);
}
#else 
#line 1 "langs2.cxx"
extern int csub ();
int
foo__Fi (x) int x;
{
  return csub (x / 2);
}

extern int cppsub_ ();
int
cppsub_ (y) int *y;
{
  return foo__Fi (*y);
}
#endif