summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/nest10.C
blob: 17db4f0a137a170e7210443c7e9a328d513f66e2 (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
// { dg-do assemble  }
// GROUPS passed nested-classes
class A
	{
	public:
		class B
			{
			public:
				int f ();
				void g (int);
			private:
				int b;
			};
	};

int A::B::f ()
	{
	int val=b;
	return val;
	}

void A::B::g (int val)
	{
	b = val;
	}


int main ()
	{
	}