Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/gimplefe-16.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
/* { dg-do compile } */ /* { dg-options "-O -fgimple" } */ struct Y { int b[2]; }; struct X { int a; struct Y y; }; struct X x; int __GIMPLE () foo (struct X *p, _Complex int q) { int b; b_1 = __real q; p_4(D)->a = b_1; x.y.b[b_1] = b_1; b_2 = p->y.b[1]; b_3 = x.a; return b_3; }