summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr71529.C
blob: 148527f00c421883d46005e9a74304a953afdd6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR middle-end/71529
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } }
// { dg-options "-fcheck-pointer-bounds -mmpx -O2" }

class c1
{
 public:
  virtual ~c1 ();
};

class c2
{
 public:
  virtual ~c2 ();
};

class c3 : c1, c2 { };

int main (int, char **)
{
  c3 obj;
}