summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr71633.C
blob: 48e9c9833ec63b0218932fface3e125082d1d61b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* PR71633 */
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */

class c1
{
  virtual void fn1 ();
};

class c2
{
  virtual int *fn2 () const;
};

class c3 : c1, c2
{
  int *fn2 () const;
  int *fn3 (int) const;
};

int *c3::fn2 () const
{
}

int *c3::fn3 (int p) const
{
  return fn3 (p);
}