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