xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/opaque0.c (revision a5a4af3bd380a7b58b758d9b311cef9f7c34aeb4)
1 /*  Note that struct foo is opaque (never defined) in this file.  This
2     is allowed by C since this file does not reference any members of
3     the structure.  The debugger needs to be able to associate this
4     opaque structure definition with the full definition in another
5     file.
6 */
7 
8 struct foo *foop;
9 extern struct foo *getfoo ();
10 extern void putfoo (struct foo *foop);
11 
main()12 int main ()
13 {
14     foop = getfoo ();
15     putfoo (foop);
16     return 0;
17 }
18