summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/synth6.C
blob: 01485282e8918d299c0f23618e33728b03756edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// Bug: g++ tries to generate an op= for DbmItem and fails.

class RefCount{
public:
  RefCount();

private:
  RefCount& operator=(const RefCount);
};

class DbmItem: public RefCount{
public:
  DbmItem(): RefCount() {}
};