diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/ipa/pr68851.C')
-rw-r--r-- | gcc/testsuite/g++.dg/ipa/pr68851.C | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/g++.dg/ipa/pr68851.C b/gcc/testsuite/g++.dg/ipa/pr68851.C index 659e4cdcc4a..73096969eb6 100644 --- a/gcc/testsuite/g++.dg/ipa/pr68851.C +++ b/gcc/testsuite/g++.dg/ipa/pr68851.C @@ -8,7 +8,7 @@ public: }; class A { public: - virtual bool isFormControlElement() const {} + virtual bool isFormControlElement() const { return false; } }; class C { struct D { @@ -20,10 +20,10 @@ class F { virtual bool isFormControlElement() const; }; class G : A, F { - bool isFormControlElement() const {} + bool isFormControlElement() const { return true; } }; bool C::checkPseudoClass(const D &p1, int &) const { A &a = *p1.element; a.isFormControlElement(); - a.isFormControlElement() || a.isFormControlElement(); + return a.isFormControlElement() || a.isFormControlElement(); } |