2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr60647-2.c
blobddeb117852386b4a9c1b6a731bd347d814ddcc79
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 struct _wincore
6 int width, height;
7 };
9 static void
10 foo (void *dpy, struct _wincore *winInfo, int offset)
12 fn1 (winInfo->height);
15 static void
16 bar (void *dpy, int winInfo, int *visrgn)
18 ((void (*) (void *, int, int)) foo) ((void *) 0, winInfo, 0); /* { dg-warning "function called through a non-compatible type" } */
19 fn2 (0, 0, visrgn);
22 void
23 baz (void *dpy, int win, int prop)
25 bar ((void *) 0, 0, (int *) 0);