summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/opaque1.c
blob: c34f7aaaae12766b6061107ab531d4395227ed2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct foo {
    int a;
    int b;
} afoo = { 1, 2};

struct foo *getfoo ()
{
    return (&afoo);
}

#ifdef PROTOTYPES
void putfoo (struct foo *foop)
#else
void putfoo (foop)
     struct foo *foop;
#endif
{
}