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
/
sorry1.C
1
// { dg-do assemble }
2
// GROUPS passed old-sorry
3
class a {
4
public:
5
int* foo();
6
};
7
8
a aa;
9
a* ap;
10
11
class b {
12
public:
13
int ok(int* p =aa.foo());
14
15
// dump_init should know what to do with this NON_LVALUE_EXPR
16
int f(int* p =ap->foo());
17
};
18
19
int
20
b::ok(int *p)
21
{
22
return 0;
23
}
24
25
int
26
b::f(int *p)
27
{
28
return 0;
29
}
30
void
31
bar()
32
{
33
b b;
34
b.ok();
35
b.f();
36
}