PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / g++.dg / pr71624.C
blob951534ce875147ef0d40f9894f8334a7db14a484
1 /* PR71624 */
2 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } } */
3 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
5 class c1
7 public:
8   virtual int fn1 () const;
9   int fn2 (const int *) const;
12 class c2
14   int fn1 ();
15   c1 obj;
18 int
19 c1::fn1 () const
21   return 0;
24 int
25 c1::fn2 (const int *) const
27   return this->fn1 ();
30 int
31 c2::fn1 ()
33   return obj.fn2 (0);