2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56724-3.c
blob192d71962a10aa7c7c12dea400acc944fa24f556
1 /* PR c/56724 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wc++-compat" } */
5 extern void xfer (int, int, unsigned char *);
6 struct T { int a; } t;
8 void
9 call (int x, int y, void *arg)
11 unsigned char *uc = arg; /* { dg-warning "23:request for implicit conversion" } */
12 xfer (x, y, arg); /* { dg-warning "15:request for implicit conversion" } */
13 xfer (x, y, t); /* { dg-error "15:incompatible type for" } */