]> git.ipfire.org Git - thirdparty/gcc.git/blame - libmudflap/testsuite/libmudflap.c/fail35-frag.c
Daily bump.
[thirdparty/gcc.git] / libmudflap / testsuite / libmudflap.c / fail35-frag.c
CommitLineData
306ae32b
FCE
1#include <stdlib.h>
2
3struct k
4{
5 int p;
6 struct {
7 int m;
8 } q;
9};
10
11int
12main ()
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 COMPONENT_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 *-*-* } } */