0
|
1 #include <stdlib.h>
|
|
2
|
|
3 struct k
|
|
4 {
|
|
5 int p;
|
|
6 struct {
|
|
7 int m;
|
|
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 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 *-*-* } } */
|