Dead
[official-gcc.git] / gomp-20050608-branch / libmudflap / testsuite / libmudflap.c / fail29-frag.c
blob2024064dc73e9eadcf91d20a3a4835146c90fa8b
1 #include <stdio.h>
2 #include <stdlib.h>
4 int foo (int u[10])
6 return u[8]; /* this dereference should be instrumented */
9 int main ()
11 int *k = malloc (6);
12 return foo (k);
14 /* { dg-output "mudflap violation 1.*" } */
15 /* { dg-output "Nearby object.*" } */
16 /* { dg-output "mudflap object.*malloc region.*alloc" } */
17 /* { dg-do run { xfail *-*-* } } */