summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr44971.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr44971.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr44971.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr44971.c b/gcc/testsuite/gcc.dg/pr44971.c
new file mode 100644
index 000000000..a1faef51b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr44971.c
@@ -0,0 +1,27 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fcompare-debug -w" } */
+
+typedef struct
+{
+ int default_screen;
+} *_XPrivint;
+typedef int FcBool;
+typedef struct
+{
+ struct _XftintInfo *next;
+} XftintInfo;
+int _XftintInfo;
+
+void _XftintInfoGet (int * dpy, FcBool createIfNecessary)
+{
+ int event_base;
+ &event_base
+ && dpy[createIfNecessary] != 0;
+}
+
+void _XftCloseint (int dpy, XftintInfo * info,XftintInfo * *prev)
+{
+ _XftintInfoGet (dpy, 0);
+ for (prev = &_XftintInfo; info = *prev; prev = &(*prev)->next)
+ ;
+}