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++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
member.C
blob
69228334ff6d14fcc1b33b6baed50514d6188f5c
1
// { dg-do compile }
2
3
4
class BIXSet{
5
int z[4];
6
public:
7
void f(BIXSet &other){
8
z[0]=other.z[0];
9
}
10
11
};
12
13
class TestCase2{
14
public:
15
BIXSet a,b;
16
17
public:
18
void run(void){
19
BIXSet x,y;
20
process(0,x,y);
21
}
22
23
protected:
24
template<class BS> void process(const int d,BS &en,BS &lb){
25
a.f(en);b.f(lb);
26
}
27
28
};