1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// Test for backwards brain-damage compatibility with -fpermissive. // { dg-options "-fpermissive -w" } void f (); void f (int *); void g (int); int main () { void *v = 1234; void (*p)() = v; int i = v; f (i); f (v); g (v); enum { a } b = i; void (*p2)(int) = p; unsigned *ip = &i; }