summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash6.C
blob: 6c1b7f69ea8437a7390e1d600dd92552604ef717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }
// { dg-options "-O2" }

struct E
{
  int f(int);
};

void ha()
{
  enum {X = 0};

  int A, C;

  E vList[10];

  A = (C + 1) % 3;
  vList[1].f(A);
}