mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 22:08:41 +00:00
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:
@@ -1119,6 +1119,19 @@ struct Minheritance_Child : Minheritance_MidLeft, Minheritance_MidRight{
|
|||||||
char *name;
|
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{
|
struct OverloadedMethods{
|
||||||
int x;
|
int x;
|
||||||
int cool_method(void){
|
int cool_method(void){
|
||||||
@@ -1323,6 +1336,12 @@ extended_type_coverage_eval_tests(void){
|
|||||||
minheritance_child.Minheritance_MidRight::x = +1;
|
minheritance_child.Minheritance_MidRight::x = +1;
|
||||||
minheritance_child.Minheritance_MidRight::y = +1;
|
minheritance_child.Minheritance_MidRight::y = +1;
|
||||||
|
|
||||||
|
Pure *child = new PureChild();
|
||||||
|
child->Foo();
|
||||||
|
child->Foo();
|
||||||
|
child->Foo();
|
||||||
|
delete child;
|
||||||
|
|
||||||
OverloadedMethods overloaded_methods;
|
OverloadedMethods overloaded_methods;
|
||||||
{
|
{
|
||||||
overloaded_methods.x = 0;
|
overloaded_methods.x = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user