view gcc/testsuite/c-c++-common/pr88984.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

/* PR c++/88984 */
/* { dg-do run } */

void
foo (int x, int y)
{
  while (x > 0)
    switch (({ if (y) break; y; }))
      {
      case 2: x = 0;
      }
}

int
main ()
{
  foo (1, 1);
  return 0;
}