Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr60647-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2" } */ struct _wincore { int width, height; }; void fn1 (int); void fn2 (int, int, int *); static void foo (void *dpy, struct _wincore *winInfo, int offset) { fn1 (winInfo->height); } static void bar (void *dpy, int winInfo, int *visrgn) { ((void (*) (void *, int, int)) foo) ((void *) 0, winInfo, 0); /* { dg-warning "function called through a non-compatible type" } */ fn2 (0, 0, visrgn); } void baz (void *dpy, int win, int prop) { bar ((void *) 0, 0, (int *) 0); }