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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
libmudflap
/
testsuite
/
libmudflap.c
/
fail10-frag.c
blob
db135d5c45133e395baa9a44649b5440aa95e068
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
int
main
()
5
{
6
volatile
int
foo
[
10
];
7
int
sz
=
sizeof
(
int
);
8
9
volatile
char
*
bar
= (
char
*)
foo
;
10
bar
[
sz
*
10
] =
0
;
11
return
0
;
12
}
13
/* { dg-output "mudflap violation 1.*" } */
14
/* { dg-output "Nearby object 1.*" } */
15
/* { dg-output "mudflap object.*.main. foo.*" } */
16
/* { dg-do run { xfail *-*-* } } */