summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c/fail37-frag.c
blob: 41ce4b91e05c4b9d9cdbc9a33cea782b243b90c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
typedef struct
{
  short f : 3;
} small;

struct
{
  int i;
  small s[4];
} x;

main ()
{
  int i;
  for (i = 0; i < 5; i++)
    x.s[i].f = 0;
  exit (0);
}
/* { dg-output "mudflap violation 1.*" } */
/* { dg-output "Nearby object.*" } */
/* { dg-output "mudflap object.* x.*" } */
/* { dg-do run { xfail *-*-* } } */