2011-08-26 12:32:59 +00:00
|
|
|
// Test for -var-info-path-expression syntax error
|
|
|
|
// caused by PR 11912
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
class A
|
|
|
|
{
|
2011-08-26 21:11:08 +00:00
|
|
|
public:
|
|
|
|
int a;
|
2011-08-26 12:32:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class C : public A
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
C()
|
|
|
|
{
|
2011-08-26 21:11:08 +00:00
|
|
|
a = 5;
|
2011-08-26 12:32:59 +00:00
|
|
|
};
|
|
|
|
void testLocation()
|
|
|
|
{
|
|
|
|
z = 1;
|
|
|
|
};
|
|
|
|
int z;
|
|
|
|
};
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
C c;
|
|
|
|
c.testLocation();
|
|
|
|
return 0;
|
|
|
|
}
|