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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libmudflap/] [testsuite/] [libmudflap.c/] [fail36-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 k
4
{
5
  int p;
6
  struct {
7
    int m : 31;
8
  } q;
9
};
10
 
11
int
12
main ()
13
{
14
  volatile struct k *l = malloc (sizeof (int)); /* make it only big enough for k.p */
15
  /* Confirm that we instrument this nested construct
16
     BIT_FIELD_REF(COMPONENT_REF(INDIRECT_REF)). */
17
  l->q.m = 5;
18
  return 0;
19
}
20
/* { dg-output "mudflap violation 1.*" } */
21
/* { dg-output "Nearby object.*" } */
22
/* { dg-output "mudflap object.*" } */
23
/* { dg-do run { xfail *-*-* } } */

powered by: WebSVN 2.1.0

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