Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libmudflap / testsuite / libmudflap.c / pass46-frag.c
blob2f327891bc03c606adb710de123aa6f21ef19c1a
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 int foo (int *u, int i)
7 return u[i]; /* this dereference should not be instrumented */
10 int main ()
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" */
18 /* { dg-options "-fmudflap -fmudflapir -lmudflap -Wall" } */