diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C new file mode 100644 index 00000000000..a3bb856d1ad --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C @@ -0,0 +1,15 @@ +// Build don't link: +// GROUPS passed visibility +// Make sure private inheritance affects the visibility of +// static members used in an inherited context. +class foo +{ +public: + static int y; +}; +class foo1 : private foo +{ }; +class foo2 : public foo1 +{ public: + void bar () { y; }// ERROR - .* +}; |