OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* call.c (add_candidates): Add first_arg and return_type parms.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
visibility1.C
1
// { dg-do assemble }
2
// GROUPS passed visibility
3
class foo {
4
protected:
5
int i; // { dg-error "" } 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
}