Fix -Wreturn-type fallout.
[official-gcc.git] / gcc / testsuite / g++.dg / pr71633.C
blob8852695b910a00c0e9eb6bca4fa3774cf0f8fbae
1 /* PR71633 */
2 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } } */
3 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
5 class c1
7   virtual void fn1 ();
8 };
10 class c2
12   virtual int *fn2 () const;
15 class c3 : c1, c2
17   int *fn2 () const;
18   int *fn3 (int) const;
21 int *c3::fn2 () const
23   return 0;
26 int *c3::fn3 (int p) const
28   return fn3 (p);