1 /* When merging a nonprototype definition of a function with a prior
2 prototype declaration, the composite type of the return types must
3 be formed rather than just copying the function type. */
4 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
5 /* { dg-do compile } */
12 a5
*f1 () { return 0; }
15 a5
*f2 () { return 0; }
18 a5
*f3 (void) { return 0; }
21 a5
*f4 (void) { return 0; }
27 x
= f1 (); /* { dg-error "incompatible" "f1" } */
28 x
= f2 (); /* { dg-error "incompatible" "f2" } */
29 x
= f3 (); /* { dg-error "incompatible" "f3" } */
30 x
= f4 (); /* { dg-error "incompatible" "f4" } */