* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr40080.c
blobe36f14273e87f7b6829d278ba337f7ce4dc93853
1 extern void *ff(void*,int);
3 struct lpgl { struct lpgl *next; };
4 struct lpgd { struct lpgl *first; };
6 typedef int (*xfn)( );
7 static void xDP_IF_EnumGroupsInGroup ( void *a, int b, xfn fn)
9 struct lpgd *lpGData;
10 struct lpgl *lpGList;
12 if( ( lpGData = ff( a, b ) ) == ((void *)0) )
13 return;
15 if( lpGData->first == ((void *)0) )
16 return;
17 lpGList = lpGData->first;
19 for( ;; ) {
20 if( !(*fn)( ) )
21 return;
22 if( lpGList->next == ((void *)0) )
23 break;
24 lpGList = lpGList->next;
26 return;
30 static int
31 xcbDeletePlayerFromAllGroups() {
32 xDP_IF_EnumGroupsInGroup(0, 0, 0);
33 return 1;
36 void xDP_IF_EnumGroups( xfn fn) {
37 xDP_IF_EnumGroupsInGroup( 0, 0, fn);
40 static void xDP_IF_DestroyPlayer () {
41 xDP_IF_EnumGroups( xcbDeletePlayerFromAllGroups);
44 void* foo=xDP_IF_DestroyPlayer;