1 2 3 4 5 6 7 8
// { dg-do assemble } void qsort (void *, int, int, int (*)(const void *, const void *)); int f (char *, char *); void g () { typedef int (*pf)(void *, void *); qsort(0, 0, 0, pf(f)); // { dg-error "" } adding const to function parms }