aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/sorry1.C
blob: 7a77801f5cf28b0614ed49a75c25cea89f9129c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// { dg-do assemble  }
// GROUPS passed old-sorry
class a {
public:
	int*	foo();
};

a aa;
a* ap;

class b {
public:
	int	ok(int* p =aa.foo());	

  // dump_init should know what to do with this NON_LVALUE_EXPR
	int	f(int* p =ap->foo());		
};

	int
b::ok(int *p) 
{
	return 0;
}

	int
b::f(int *p) 
{			
	return 0;
}
	void
bar()
{
	b b;
	b.ok();
	b.f();
}