Mercurial > hg > CbC > CbC_gcc
annotate libmudflap/testsuite/libmudflap.c/pass46-frag.c @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | a06113de4d67 |
children |
rev | line source |
---|---|
0 | 1 #include <stdio.h> |
2 #include <stdlib.h> | |
3 #include <string.h> | |
4 | |
5 int foo (int *u, int i) | |
6 { | |
7 return u[i]; /* this dereference should not be instrumented */ | |
8 } | |
9 | |
10 int main () | |
11 { | |
12 int *k = malloc (6); | |
13 int l = foo (k, 8); | |
14 int boo [8]; | |
15 int m = boo [l % 2 + 12]; /* should not be instrumented */ | |
16 return m & strlen (""); /* a fancy way of saying "0" */ | |
17 } | |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
18 /* { dg-options "-fmudflap -fmudflapir -lmudflap" } */ |