Mercurial > hg > CbC > CbC_gcc
comparison libmudflap/testsuite/libmudflap.c/fail35-frag.c @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
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 *-*-* } } */ |