Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr31959.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR middle-end/31959 */ /* { dg-do compile } */ /* { dg-options "-O0 -fguess-branch-probability" } */ struct A { int i; }; static inline struct A * bar (struct A *x) { return x; } void * foo (struct A *x, int y) { void *p = (void *) 0; if (__builtin_expect (y >= 6, 0)) p = bar (x); return p; }