summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/conversion3.C
blob: 6dbd475c65dc6500421087e3138c130f412efdc1 (plain)
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
}