mips.c (mips_function_ok_for_sibcall): Use targetm.binds_local_p instead of DECL_EXTE...
[official-gcc.git] / libmudflap / testsuite / libmudflap.c / fail27-frag.c
blob7168dfc61b20db821678f2032e14c00ea0dbb092
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 char volatile *
6 __attribute__((noinline))
7 foo (unsigned i)
9 char volatile buffer[10];
10 char volatile *k = i ? & buffer[i] : NULL; /* defeat addr-of-local-returned warning */
11 return k;
14 int main ()
16 char volatile *f = foo (5);
17 f[0] = 'b';
19 return 0;
21 /* { dg-output "mudflap violation 1.*" } */
22 /* { dg-output "Nearby object.*" } */
23 /* { dg-output "mudflap object.*buffer.*alloc.*dealloc" } */
24 /* { dg-do run { xfail *-*-* } } */