diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/crash9.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/crash9.C | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/crash9.C b/gcc/testsuite/g++.old-deja/g++.jason/crash9.C new file mode 100644 index 000000000..292d3548c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/crash9.C @@ -0,0 +1,29 @@ +// { dg-do assemble } +// PRMS Id: 5085 +// Bug: TYPE_POINTER_TO wasn't set. + +class A { + A(const A &); + void operator=(const A &); +public: + inline A(); +}; + +class B { + A a; +public: + B(); + virtual void f() const; +}; + +class C : public B { }; + +class D : C { +public: + void f() const; +}; + +void D::f() const +{ + C::f(); +} |