Merge tree-ssa-20020619-branch into mainline.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr15245.c
blobd7d9051a1c1a5c3593ad66547467e6d8cdfd2024
1 /* Testcase from <marcus@jet.franken.de>
2 PR optimization/15245
3 This used to ICE as convert was used
4 in tree-ssa-phiopt which created non gimple
5 code. */
7 char *f(char *x, int flag)
9 char *ret = (char*)0;
12 if( x > (char*)1 ) {
13 if(x)
14 return (char*)0;
15 } else {
16 if( flag & 1 )
17 ret = (char*)1;
18 flag |= 2;
20 return ret;