2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr30949.c
bloba3f6a14132cb1533423a0f250c19247601aae853
1 /* PR30949 */
2 /* { dg-do compile } */
3 /* { dg-options "-pedantic-errors" } */
5 int func (int x);
6 void recv (int (* funcptr) (double x)); /* { dg-message "note: expected 'int .\\\*..double.' but argument is of type 'int .\\\*..int.'" } */
7 void call (void)
9 recv (func); /* { dg-error "passing argument 1 of 'recv' from incompatible pointer type" } */