1 /* PR middle-end/38140 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -fno-strict-aliasing" } */ 4 foo(void * x)5 int foo (void *x) 6 { 7 int (*fn) (int); 8 *(void **)&fn = x; 9 return fn (6); 10 } 11