Commit | Line | Data |
---|---|---|
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 | ||
6 | class A | |
7 | { | |
8 | int a; | |
9 | }; | |
10 | ||
11 | class C : public A | |
12 | { | |
13 | public: | |
14 | C() | |
15 | { | |
16 | }; | |
17 | void testLocation() | |
18 | { | |
19 | z = 1; | |
20 | }; | |
21 | int z; | |
22 | }; | |
23 | ||
24 | int main() | |
25 | { | |
26 | C c; | |
27 | c.testLocation(); | |
28 | return 0; | |
29 | } |