view gcc/testsuite/gcc.dg/pr94172-2.c @ 19:2b5abeee2509 default tip

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

/* PR c/94172 */
/* { dg-do compile } */
/* { dg-options "-Os -g -fshort-enums" } */

extern enum E e;
extern void bar (int a);
enum E { F };

void
foo (int a)
{
  int l = e;
  if (a)
    {
      __asm volatile ("nop");
      l = 0;
    }
  bar (l);
}