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 ok(int * p)20b::ok(int *p) 21 { 22 return 0; 23 } 24 25 int f(int * p)26b::f(int *p) 27 { 28 return 0; 29 } 30 void bar()31bar() 32 { 33 b b; 34 b.ok(); 35 b.f(); 36 } 37