aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/opaque1.c
blob: 4a3c8559b828e54aebfe2c1a58d19c38aab3ec6b (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 __STDC__
void putfoo (struct foo *foop)
#else
void putfoo (foop)
     struct foo *foop;
#endif
{
}