PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44971.c
blob209695901ea980b21d4e5b1cc8c303506d084204
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fcompare-debug -w" } */
3 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
5 typedef struct
7 int default_screen;
8 } *_XPrivint;
9 typedef int FcBool;
10 typedef struct
12 struct _XftintInfo *next;
13 } XftintInfo;
14 int _XftintInfo;
16 void _XftintInfoGet (int * dpy, FcBool createIfNecessary)
18 int event_base;
19 &event_base
20 && dpy[createIfNecessary] != 0;
23 void _XftCloseint (int dpy, XftintInfo * info,XftintInfo * *prev)
25 _XftintInfoGet (dpy, 0);
26 for (prev = &_XftintInfo; info = *prev; prev = &(*prev)->next)