Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr65980.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
/* PR rtl-optimization/65980 */ /* { dg-do compile } */ /* { dg-options "-O3 -fcompare-debug" } */ /* { dg-xfail-if "" { powerpc-ibm-aix* } } */ typedef struct { int b; } A; void (*a) (int); int b; int foo (A *v) { asm goto ("" : : "m" (v->b) : : l); return 0; l: return 1; } int bar (void) { if (b) { if (foo (0) && a) a (0); return 0; } if (foo (0) && a) a (0); return 0; }