aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/access2.C
blob: daf54d67b289b7b6c5916e887799fa2150d68ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile }

class A {
protected:
  A& operator=( const A& a ) { return *this; }
};

class B : public A
{};

int main()
{
  B x;
  B y;
  x = y;
}