aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/opaque0.c
blob: 330560ec8b6aeeeb0aeefbd6e9d7a926f20b6c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*  Note that struct foo is opaque (never defined) in this file.  This
    is allowed by C since this file does not reference any members of
    the structure.  The debugger needs to be able to associate this
    opaque structure definition with the full definition in another
    file.
*/

struct foo *foop;
extern struct foo *getfoo ();
extern void putfoo (struct foo *foop);

int main ()
{
    foop = getfoo ();
    putfoo (foop);
    return 0;
}