Mercurial > hg > CbC > CbC_gcc
view libmudflap/testsuite/libmudflap.c/pass46-frag.c @ 101:5c3ad79fc15b
modify implemeted __rectype expression
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Feb 2012 18:15:22 +0900 |
parents | b7f97abdc517 |
children |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include <string.h> int foo (int *u, int i) { return u[i]; /* this dereference should not be instrumented */ } int main () { int *k = malloc (6); int l = foo (k, 8); int boo [8]; int m = boo [l % 2 + 12]; /* should not be instrumented */ return m & strlen (""); /* a fancy way of saying "0" */ } /* { dg-options "-fmudflap -fmudflapir -lmudflap" } */