gdb/testsuite: Improve detection of bug gdb/24541
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-inheritance-syntax-error.cc
CommitLineData
0d932b2f
MK
1// Test for -var-info-path-expression syntax error
2// caused by PR 11912
3#include <string.h>
4#include <stdio.h>
5
6class A
7{
5c07461a
JK
8 public:
9 int a;
0d932b2f
MK
10};
11
12class C : public A
13{
14 public:
15 C()
16 {
5c07461a 17 a = 5;
0d932b2f
MK
18 };
19 void testLocation()
20 {
21 z = 1;
22 };
23 int z;
24};
25
26int main()
27{
28 C c;
29 c.testLocation();
30 return 0;
31}
This page took 0.912007 seconds and 4 git commands to generate.