2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / pr87398.C
blob00a2cd3f1c7aa10013cc6c9390e5353f7cf906c5
1 // PR c++/87398
2 // { dg-do compile }
4 struct A { virtual int foo (); };
6 int
7 bar (int x)
9   A e[5][2];
10   int f = e[4][x].foo ();
11   return f;