repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2012-07-13 Richard Guenther <rguenther@suse.de>
[official-gcc.git]
/
libmudflap
/
testsuite
/
libmudflap.c
/
fail12-frag.c
blob
7491fed7c1f2faf24ccc0019afaa7879f5f7dccc
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
int
*
y
;
5
int
main
()
6
{
7
int
i
=
10
;
8
int
*
x
= (
int
*)
malloc
(
i
*
sizeof
(
int
));
9
y
=
x
;
10
while
(
i
--)
11
{
12
++
x
;
13
*
x
=
i
;
14
}
15
return
0
;
16
}
17
/* { dg-output "mudflap violation 1.*" } */
18
/* { dg-output "Nearby object 1.*" } */
19
/* { dg-output "mudflap object.*malloc region.*" } */
20
/* { dg-do run { xfail *-*-* } } */