Mercurial > hg > CbC > CbC_gcc
annotate libmudflap/testsuite/libmudflap.c/fail34-frag.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children |
rev | line source |
---|---|
0 | 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 *-*-* } } */ |