summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tc1/dr52.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/tc1/dr52.C')
-rw-r--r--gcc/testsuite/g++.dg/tc1/dr52.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/tc1/dr52.C b/gcc/testsuite/g++.dg/tc1/dr52.C
index b0896d73fa7..4f4015dc958 100644
--- a/gcc/testsuite/g++.dg/tc1/dr52.C
+++ b/gcc/testsuite/g++.dg/tc1/dr52.C
@@ -17,7 +17,7 @@ struct B1 : B {};
struct B2 : B {};
struct C
-{
+{ // { dg-error "C" }
void foo(void);
};
@@ -29,6 +29,6 @@ public:
void bar(void)
{
this->B::foo(); // { dg-error "" }
- this->C::foo(); // { dg-error "" }
+ this->C::foo(); // { dg-error "inaccessible|context" }
}
};