OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libmudflap/] [testsuite/] [libmudflap.c/] [fail68-frag.c] - Blame information for rev 776

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 738 jeremybenn
/* PR libmudflap/40778 */
2
 
3
char p[32];
4
static int j;
5
 
6
__attribute__((noinline))
7
static void foo (int i)
8
{
9
  if (j++ == 0)
10
    p[i + 4] = 12;
11
  else
12
    p[i - 4] = 13;
13
}
14
 
15
int
16
main ()
17
{
18
  foo (30);
19
  foo (30);
20
  foo (30);
21
  return 0;
22
}
23
 
24
/* { dg-output "mudflap violation 1.*" } */
25
/* { dg-output "Nearby object 1.*" } */
26
/* { dg-output "mudflap object.*name.*p" } */
27
/* { dg-do run { xfail *-*-* } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.