Revert r135493 & r135463
[official-gcc.git] / libmudflap / testsuite / libmudflap.c / fail34-frag.c
blobf6572b019a4f382055857d09a2685b79dfa7ec91
1 #include <stdlib.h>
3 struct s
5 int a1[4];
6 };
8 struct s a, b;
9 int idx = 7; /* should pass to the next object */
11 int
12 main ()
14 int i, j=0;
15 int a_before_b = (& a < & b);
16 j = (a_before_b ? a.a1[idx] : b.a1[idx]);
17 return j;
19 /* { dg-output "mudflap violation 1.*" } */
20 /* { dg-output "Nearby object.*" } */
21 /* { dg-output "mudflap object.*\[ab\]" } */
22 /* { dg-do run { xfail *-*-* } } */