repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
visibility10.C
blob
89d2157995a87703f5472944c2e86ba5cc710187
1
// { dg-do assemble }
2
// GROUPS passed visibility
3
struct base
4
{
5
protected:
6
void base_func() {}// { dg-error "" } .*is protected.*
7
};
8
9
struct derived : public base
10
{
11
protected:
12
void derived_func(base *ptr) { ptr->base_func(); }// { dg-error "" } within this context
13
};
14