summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.cc
blob: 9f0ab052829dafa416618df61241364f38a607d5 (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
// Test for -var-info-path-expression syntax error
// caused by PR 11912
#include <string.h>
#include <stdio.h>

class A
{
	public:
		int a;
};

class C : public A
{
	public:
		C()
		{
			a = 5;
		};
		void testLocation()
		{
			z = 1;
		};
		int z;
};

int main()
{
	C c;
	c.testLocation();
	return 0;
}