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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
sorry1.C
blob
7a77801f5cf28b0614ed49a75c25cea89f9129c7
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
}