Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/torture/pr65626.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } class A { virtual unsigned long m_fn1() const; virtual int &m_fn2(unsigned long) const; }; class C : A { public: int &m_fn2(unsigned long) const; unsigned long m_fn1() const; }; class B { void m_fn3(const A &, const int &, const C &, int &) const; }; void B::m_fn3(const A &, const int &, const C &, int &) const { C &a(a); for (long b = 0; a.m_fn1(); b++) a.m_fn2(0); }