1 /* { dg-do compile { target { ! x32 } } } */ 2 /* { dg-options "-fcheck-pointer-bounds -mmpx" } */ 3 4 int foo(int); 5 6 typedef struct { 7 double d; 8 int a; 9 } str_t; 10 bar(double d,int i,str_t s)11void bar(double d, int i, str_t s) 12 { 13 d = ((double (*) (int)) foo) (i); /* { dg-warning "function called through a non-compatible type" } */ 14 } 15