diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/synth5.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/synth5.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/synth5.C b/gcc/testsuite/g++.old-deja/g++.jason/synth5.C new file mode 100644 index 000000000..f5e73807c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/synth5.C @@ -0,0 +1,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() { } |