Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr48739-1.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 tree-optimization/48739 */ /* { dg-do compile } */ /* { dg-require-effective-target pthread } */ /* { dg-options "-O1 -ftree-parallelize-loops=2 -fno-tree-dominator-opts" } */ extern int g; extern void bar (void); int foo (int x) { int a, b, *c = (int *) 0; for (a = 0; a < 10; ++a) { bar (); for (b = 0; b < 5; ++b) { x = 0; c = &x; g = 1; } } *c = x; for (x = 0; x != 10; x++) ; return g; }