aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/access2.C
diff options
context:
space:
mode:
author(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-26 22:20:04 +0000
committer(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-26 22:20:04 +0000
commitf320c3ac365f33ed8f571937331e47bd6fea30c1 (patch)
treec08f6bd797dfa24d348853d46c27e28d1e799194 /gcc/testsuite/g++.dg/inherit/access2.C
parent1373952868cb7ac8a23bc9f8f292cb61ef65c652 (diff)
This commit was manufactured by cvs2svn to create taggcc-3_2-branchpoint
'gcc-3_2-branchpoint'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/gcc-3_2-branchpoint@55784 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/inherit/access2.C')
-rw-r--r--gcc/testsuite/g++.dg/inherit/access2.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/inherit/access2.C b/gcc/testsuite/g++.dg/inherit/access2.C
new file mode 100644
index 00000000000..daf54d67b28
--- /dev/null
+++ b/gcc/testsuite/g++.dg/inherit/access2.C
@@ -0,0 +1,16 @@
+// { dg-do compile }
+
+class A {
+protected:
+ A& operator=( const A& a ) { return *this; }
+};
+
+class B : public A
+{};
+
+int main()
+{
+ B x;
+ B y;
+ x = y;
+}