Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr91195.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* PR middle-end/91195 */ /* { dg-do compile } */ /* { dg-options "-Wmaybe-uninitialized -O2" } */ int bar (char*); void foo (char *x, char *y) { char *a[2]; int b = 0; if (x) a[b++] = x; /* { dg-bogus "may be used uninitialized in this function" } */ if (y) a[b++] = y; for (int j = 0; j < 4; j++) switch (j) { case 0: if (b == 0 || bar (a[0])) break; } }