1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
void foo (int k) { volatile int *b = & k; b++; *b = 5; } int main () { foo (5); return 0; } /* { dg-output "mudflap violation 1.*" } */ /* { dg-output "Nearby object.*" } */ /* { dg-output "mudflap object.*k" } */ /* { dg-do run { xfail *-*-* } } */