Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr56724-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* PR c/56724 */ /* { dg-do compile } */ /* { dg-options "-Wc++-compat" } */ extern void xfer (int, int, unsigned char *); struct T { int a; } t; void call (int x, int y, void *arg) { unsigned char *uc = arg; /* { dg-warning "23:request for implicit conversion" } */ xfer (x, y, arg); /* { dg-warning "15:request for implicit conversion" } */ xfer (x, y, t); /* { dg-error "15:incompatible type for" } */ }