blob: d96765653596c4b8dd7a913dc12529064993b7b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* PR tree-optimization/89566 */
/* { dg-do compile } */
typedef struct FILE { int i; } FILE;
#ifdef __cplusplus
extern "C"
#endif
int fprintf (FILE *, const char *, ...);
int
main ()
{
((void (*)()) fprintf) (); // { dg-warning "function called through a non-compatible type" "" { target c } }
return 0;
}
|