C++: Handle ProxyClass in getIdentityString()

This commit is contained in:
Dave Bartolomeo
2019-01-31 09:49:42 -08:00
parent 3414c105c6
commit 283991d520
2 changed files with 29 additions and 2 deletions

View File

@@ -9,6 +9,12 @@ void check_var(TVar var, const char* expected);
struct S
{
enum NestedEnum
{
Blah,
Bluh
};
int i;
float f;
};
@@ -18,6 +24,13 @@ struct T
bool b;
};
enum E
{
One,
Two,
Three
};
void checks()
{
// Primitive types
@@ -120,6 +133,9 @@ void checks()
check_type<AI>("int[10]");
check_type<CAI>("int const[10]");
check_type<int const[10]>("int const[10]");
check_type<E>("E");
check_type<S::NestedEnum>("S::NestedEnum");
}
int globalVariable;