reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / sorry1.C
blob7a77801f5cf28b0614ed49a75c25cea89f9129c7
1 // { dg-do assemble  }
2 // GROUPS passed old-sorry
3 class a {
4 public:
5         int*    foo();
6 };
8 a aa;
9 a* ap;
11 class b {
12 public:
13         int     ok(int* p =aa.foo());   
15   // dump_init should know what to do with this NON_LVALUE_EXPR
16         int     f(int* p =ap->foo());           
19         int
20 b::ok(int *p) 
22         return 0;
25         int
26 b::f(int *p) 
27 {                       
28         return 0;
30         void
31 bar()
33         b b;
34         b.ok();
35         b.f();