OSDN Git Service

2010-03-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr30949.c
1 /* PR30949 */
2 /* { dg-do compile } */
3 /* { dg-options "-pedantic-errors" } */
4
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)
8 {
9   recv (func); /* { dg-error "passing argument 1 of 'recv' from incompatible pointer type" } */
10 }
11