1// { dg-do assemble } 2// GROUPS passed arg-matching 3// arg-matching file 4// Message-Id: <14t4tyk@rpi.edu> 5// From: jorgej@colossus.cs.rpi.edu (Joaquim Jorge) 6// Subject: g++ 2.3.3 Doesn't check function types in initializer lists ? 7// Date: Tue, 9 Mar 1993 21:39:08 GMT 8 9typedef void (*FuncPtr)(int a, float b); 10class Amazing { int a; int b; int c; }; 11 12extern void *Wrong1(char *a, int *b); 13extern void *Wrong2(Amazing a, int *b); 14extern void *Wrong3(char *a, Amazing *b); 15extern void Wrong4(char *a, int *b); 16extern Amazing Wrong5(char *a, int *b); 17 18FuncPtr p = &Wrong5;// { dg-error "" } .* 19FuncPtr func_ptr_array[] = { &Wrong1, &Wrong2, &Wrong3, &Wrong4, &Wrong5, 0 };// { dg-error "" } .* 20 21