Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr78445.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 |
rev | line source |
---|---|
111 | 1 /* PR tree-optimization/78445 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -ftree-loop-if-convert -ftree-vectorize" } */ | |
4 /* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */ | |
5 | |
6 int a; | |
7 | |
8 void | |
9 foo (int x, int *y) | |
10 { | |
11 while (a != 0) | |
12 if (x != 0) | |
13 { | |
14 *y = a; | |
15 x = *y; | |
16 } | |
17 else | |
18 x = a; | |
19 } |