OSDN Git Service

PR middle-end/35314
[pf3gnuchains/gcc-fork.git] / libmudflap / testsuite / libmudflap.c / fail34-frag.c
1 #include <stdlib.h>
2
3 struct s
4 {
5   int a1[4];
6 };
7
8 struct s a, b;
9 int idx = 7; /* should pass to the next object */
10
11 int
12 main ()
13 {
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;
18 }
19 /* { dg-output "mudflap violation 1.*" } */
20 /* { dg-output "Nearby object.*" } */
21 /* { dg-output "mudflap object.*\[ab\]" } */
22 /* { dg-do run { xfail *-*-* } } */