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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libmudflap/] [testsuite/] [libmudflap.c/] [fail34-frag.c] - Rev 859

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

#include <stdlib.h>
 
struct s
{
  int a1[4];
};
 
struct s a, b;
int idx = 7; /* should pass to the next object */
 
int
main ()
{
  int i, j=0;
  int a_before_b = (& a < & b);
  j = (a_before_b ? a.a1[idx] : b.a1[idx]);
  return j;
}
/* { dg-output "mudflap violation 1.*" } */
/* { dg-output "Nearby object.*" } */
/* { dg-output "mudflap object.*\[ab\]" } */
/* { dg-do run { xfail *-*-* } } */
 

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

powered by: WebSVN 2.1.0

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