aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p811.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/p811.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p811.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p811.C b/gcc/testsuite/g++.old-deja/g++.mike/p811.C
index 7d15e9ed8aa..260c6459cb8 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/p811.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/p811.C
@@ -511,14 +511,14 @@ inline istream& WS(istream& str) { return ws(str); }
class Y {
public:
Y() {}
- virtual const char *stringify() = 0;
+ virtual const char *stringify() = 0;
virtual char *stringify2() const = 0; // { dg-error "overriding" }
};
class X: public Y {
public:
X(): Y() {}
- char *stringify(); // { dg-error "candidate" }
+ const char *stringify(); // { dg-error "candidate" }
const char *stringify2() const; // { dg-error "candidate|conflicting return type" }
};