aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/fold1.C
blob: 98f1b519115debb24c034f7108b0bdf9163fa833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR middle-end/13696
// { dg-do compile }
// { dg-options "-O2" }

extern void x(unsigned long*);

enum e { red, blue, green };

struct s {
  unsigned long l;
};
struct s map[1][256];

void
f(int i,e j) {
     x(&(map[i][j].l));
}