aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/synth5.C
blob: f5e73807c2ddeb996a1a3e1eb64d64265f5eec5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do run  }
// Bug: generated B::operator= tries to call A::operator=

#pragma implementation
#line 1 "synth5.h"
#pragma interface

struct A {
  virtual A& operator= (const A&) = 0;
};

struct B: public A {
};
#line 5 "synth5.C"
int main() { }