comparison gcc/testsuite/gcc.dg/pr56724-3.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900 (2017-10-27)
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR c/56724 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wc++-compat" } */
4
5 extern void xfer (int, int, unsigned char *);
6 struct T { int a; } t;
7
8 void
9 call (int x, int y, void *arg)
10 {
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" } */
14 }