URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
struct k
|
struct k
|
{
|
{
|
int p;
|
int p;
|
struct {
|
struct {
|
int m : 31;
|
int m : 31;
|
} q;
|
} q;
|
};
|
};
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
volatile struct k *l = malloc (sizeof (int)); /* make it only big enough for k.p */
|
volatile struct k *l = malloc (sizeof (int)); /* make it only big enough for k.p */
|
/* Confirm that we instrument this nested construct
|
/* Confirm that we instrument this nested construct
|
BIT_FIELD_REF(COMPONENT_REF(INDIRECT_REF)). */
|
BIT_FIELD_REF(COMPONENT_REF(INDIRECT_REF)). */
|
l->q.m = 5;
|
l->q.m = 5;
|
return 0;
|
return 0;
|
}
|
}
|
/* { dg-output "mudflap violation 1.*" } */
|
/* { dg-output "mudflap violation 1.*" } */
|
/* { dg-output "Nearby object.*" } */
|
/* { dg-output "Nearby object.*" } */
|
/* { dg-output "mudflap object.*" } */
|
/* { dg-output "mudflap object.*" } */
|
/* { dg-do run { xfail *-*-* } } */
|
/* { dg-do run { xfail *-*-* } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.