Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr52578.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 /* { dg-do compile } */ |
2 /* { dg-options "-fdump-tree-original" } */ | |
3 | |
4 long bar (long i) | |
5 { | |
6 return (long)((unsigned long)i + 2) - (long)i; | |
7 } | |
8 long foo (int i) | |
9 { | |
10 return (long)((unsigned long)i + 2) - (long)i; | |
11 } | |
12 | |
13 /* { dg-final { scan-tree-dump-times "return 2;" 2 "original" } } */ |