import example of user-defined type node which does NOT have a udt entry - this is the cause of the virtual interface display bugs

This commit is contained in:
Ryan Fleury
2024-01-16 14:13:34 -08:00
parent 114dd96e50
commit a026ae41f1
+19
View File
@@ -1119,6 +1119,19 @@ struct Minheritance_Child : Minheritance_MidLeft, Minheritance_MidRight{
char *name;
};
struct Pure
{
virtual ~Pure() = default;
virtual void Foo() = 0;
};
struct PureChild : Pure
{
virtual ~PureChild() = default;
virtual void Foo() {a += 1;}
double a = 0;
};
struct OverloadedMethods{
int x;
int cool_method(void){
@@ -1323,6 +1336,12 @@ extended_type_coverage_eval_tests(void){
minheritance_child.Minheritance_MidRight::x = +1;
minheritance_child.Minheritance_MidRight::y = +1;
Pure *child = new PureChild();
child->Foo();
child->Foo();
child->Foo();
delete child;
OverloadedMethods overloaded_methods;
{
overloaded_methods.x = 0;