]>
Commit | Line | Data |
---|---|---|
1e053dfe MLI |
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 |