mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 22:38:41 +00:00
non-virtual-inheritance case in mule_main
This commit is contained in:
@@ -1167,6 +1167,21 @@ struct DerivedB : Base
|
|||||||
virtual ~DerivedB() = default;
|
virtual ~DerivedB() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct NonVirtualBase
|
||||||
|
{
|
||||||
|
int x;
|
||||||
|
int y;
|
||||||
|
int z;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct NonVirtualDerived : NonVirtualBase
|
||||||
|
{
|
||||||
|
int r;
|
||||||
|
int g;
|
||||||
|
int b;
|
||||||
|
int a;
|
||||||
|
};
|
||||||
|
|
||||||
struct OverloadedMethods{
|
struct OverloadedMethods{
|
||||||
int x;
|
int x;
|
||||||
int cool_method(void){
|
int cool_method(void){
|
||||||
@@ -1383,6 +1398,12 @@ extended_type_coverage_eval_tests(void){
|
|||||||
derived->Foo();
|
derived->Foo();
|
||||||
delete derived;
|
delete derived;
|
||||||
|
|
||||||
|
NonVirtualBase *non_virtual_derived = new NonVirtualDerived();
|
||||||
|
non_virtual_derived->x += 1;
|
||||||
|
non_virtual_derived->x += 1;
|
||||||
|
non_virtual_derived->x += 1;
|
||||||
|
delete non_virtual_derived;
|
||||||
|
|
||||||
Base *base_array[1024] = {0};
|
Base *base_array[1024] = {0};
|
||||||
for(int i = 0; i < sizeof(base_array)/sizeof(base_array[0]); i += 1)
|
for(int i = 0; i < sizeof(base_array)/sizeof(base_array[0]); i += 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user