summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr77677-2.c
blob: b586d7a038e724112ce4cf0d1c156c4a23fd5556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR ipa/77677 */
/* { dg-do compile } */
/* { dg-options "-w" } */

enum machine_mode { MAX_MACHINE_MODE };

struct {
  int mode : 8;
} a;
int b;

static int fn1();

void fn2() { fn1(a, a.mode); }

int fn1(a, mode) enum machine_mode mode;
{ int c = b = c; }