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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 738 jeremybenn
#include <stdlib.h>
2
 
3
struct s
4
{
5
  int a1[4];
6
};
7
 
8
struct s a, b;
9
int idx = 7; /* should pass to the next object */
10
 
11
int
12
main ()
13
{
14
  int i, j=0;
15
  int a_before_b = (& a < & b);
16
  j = (a_before_b ? a.a1[idx] : b.a1[idx]);
17
  return j;
18
}
19
/* { dg-output "mudflap violation 1.*" } */
20
/* { dg-output "Nearby object.*" } */
21
/* { dg-output "mudflap object.*\[ab\]" } */
22
/* { dg-do run { xfail *-*-* } } */

powered by: WebSVN 2.1.0

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