1 /* { dg-do compile } */
2 /* { dg-options "-Wcast-function-type" } */
6 typedef int (f1
)(long);
7 typedef int (f2
)(void*);
10 typedef void (f4
)(...);
15 typedef void (f5
)(void);
26 a
= (f1
*) f
; /* { dg-bogus "incompatible function types" } */
27 b
= (f2
*) f
; /* { dg-warning "incompatible function types" } */
28 c
= (f3
*) f
; /* { dg-bogus "incompatible function types" } */
29 d
= (f4
*) f
; /* { dg-warning "incompatible function types" } */
30 e
= (f5
*) f
; /* { dg-bogus "incompatible function types" } */