Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr58668.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR rtl-optimization/58668 */ /* { dg-do compile } */ /* { dg-options "-O2" } */ /* { dg-additional-options "-mthumb" { target { { arm*-*-* } && arm_thumb2_ok } } } */ void *fn1 (void *); void *fn2 (void *, const char *); void fn3 (void *); void fn4 (void *, int); void * test (void *x) { void *a, *b; if (!(a = fn1 (x))) return (void *) 0; if (!(b = fn2 (a, "w"))) { fn3 (a); return (void *) 0; } fn3 (a); fn4 (b, 1); return b; }