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
c++: Add [dcl.init.aggr] examples to testsuite
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
access5.C
blob
a6364c567a6caf8dce230a9a0addb7d05c6ca235
1
// { dg-do assemble }
2
3
class A
4
{
5
protected:
6
int i;
7
};
8
9
class B : private A
10
{
11
protected:
12
A::i; // { dg-warning "deprecated" }
13
};
14
15
struct C : public B {
16
friend int f(C *p);
17
};
18
19
int f(C *p) {
20
return p->i;
21
}
22