Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/pr38752.c @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
typedef struct { int baddr; } mstruct_t; static struct { unsigned int mapnum; mstruct_t unused; } mtab; static mstruct_t *mactab = &mtab.unused; int main(void) { int i; int addr; for (i=1; i <= mtab.mapnum; i++) if (addr < mactab[i].baddr) break; return 0; }