Merge with gcc-4_3-branch up to revision 175516.
[official-gcc.git] / libmudflap / testsuite / libmudflap.c / pass54-frag.c
blob5eebb4515fc33cfb9b7f51dc1c478f3a4b8a99e2
1 struct k
3 struct {
4 int b;
5 int c;
6 } a;
7 };
9 static struct k l;
10 static struct k m;
12 void foo ()
14 /* This should not be instrumented. */
15 l.a.b = 5;
18 void bar ()
20 /* This should not be instrumented. */
21 m.a.b = 5;
24 int main ()
26 /* Force TREE_ADDRESSABLE on "l" only. */
27 volatile int *k = & l.a.c;
28 *k = 8;
29 __mf_set_options ("-mode-violate");
30 foo ();
31 bar ();
32 __mf_set_options ("-mode-check");
33 return 0;