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