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++.benjamin
/
friend02.C
blob
f6ab601d0b8de645658638ec472fd85a4740a51c
1
// { dg-do assemble }
2
//980610 bkoz
3
// example 2: ok
4
5
class bar;
6
class foo {
7
public:
8
int func(bar *);
9
foo(){}
10
~foo(){}
11
};
12
13
class bar {
14
int st;
15
public:
16
bar(){st=12;}
17
~bar(){}
18
friend int foo::func(bar *);
19
};
20
21
int foo::func(bar *obj) {
22
obj->st++;
23
return (obj->st);
24
}
25
26
void test02() {
27
foo obj_f;
28
bar obj_b;
29
30
obj_f.func( &obj_b);
31
}