aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60746.C
blob: 7ce6ebe6bc0d8fc1f9092841ca9e960dedb99667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do compile }

class One
{
public:
  virtual unsigned long getSize () const;
};

class Two
{
  virtual int run ();
};

int
Two::run ()
{
  One list_arry[5][2];
  int orig = 0;
  if (list_arry[3][orig].getSize () > 0
      || list_arry[4][orig].getSize () > 0)
    {
    }
}