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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
visibility1.C
blob
17e21b815a9527ada73c3aaabf3c65f6950ffcd5
1
// { dg-do assemble }
2
// GROUPS passed visibility
3
class foo {
4
protected:
5
int i; // { dg-message "" } protected
6
};
7
8
class bar : public foo {
9
public:
10
friend void baz (foo *);
11
};
12
13
void baz (foo *f)
14
{
15
f->i = 1; // error: i is protected// { dg-error "" } .*
16
}