summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr94172-2.c
blob: bb7b060d7b26c67bc0ab8abbefb9a1c4f6376335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 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);
}